# MakeVars for 680x0 Linux
#
# Copyright 1993 by Hamish Macdonald
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "README.legal" in the main directory of this archive
# for more details.

HOSTCC		 = gcc
CC		 = gcc -D__KERNEL__
AS		 = as
CPP		 = $(CC) -E
LD		 = ld
KERNELHDRS	 = /usr/include
INCFLAGS	 =
CFLAGS		 = -Wall $(INCFLAGS) -O2 -Wstrict-prototypes 
ifdef CONFIG_CPP
CFLAGS := $(CFLAGS) -x c++
endif
ASINCS		 = $(INCFLAGS) -O2
HOSTINCFLAGS	 = -Dlinux
HOSTFLAGS	 = -O2 -Wall $(HOSTINCFLAGS)
LDFLAGS 	 =
AR		 = ar
RANLIB		 = ranlib

.c.o:
	$(CC) $(CFLAGS) -c -o $*.o $<
.S.o:
	$(CC) $(ASINCS) -c -o $*.o $<
