# 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.


KERNADDR	 = 0xC0000000
HOSTCC		 = gcc
CC		 = gcc -D__KERNEL__ -b linux
CPP		 = $(CC) -E
LD		 = $(CC) -nostdlib
GCCHDRS 	 = /gcc/include
KERNELHDRS	 = /dev/linux-005.1/include
INCFLAGS	 = -nostdinc -I$(KERNELHDRS) -I$(GCCHDRS)
CFLAGS		 = -Wall $(INCFLAGS) -O2 -Wstrict-prototypes -fno-builtin
HOSTINCFLAGS	 = -Dlinux -I$(GCCHDRS) -I$(KERNELHDRS)
HOSTFLAGS	 = -O2 -m68020 -Wall $(HOSTINCFLAGS)
LDFLAGS 	 = -nostdlib -Xlinker -Ttext -Xlinker $(KERNADDR) \
		   -Xlinker -M

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