# 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
AS		 = gcc:compilers/linux/2.3.3/as
CPP		 = $(CC) -E
LD		 = gcc:compilers/linux/2.3.3/ld
GCCHDRS 	 = /gcc/include
KERNELHDRS	 = /dev/linux/include
INCFLAGS	 = -nostdinc -I$(KERNELHDRS) -I$(GCCHDRS)
CFLAGS		 = -Wall $(INCFLAGS) -O2 -Wstrict-prototypes -fno-builtin # -x c++
ASINCS		 = $(INCFLAGS) -O2
HOSTINCFLAGS	 = -Dlinux -I$(GCCHDRS) -I$(KERNELHDRS)
HOSTFLAGS	 = -O2 -m68020 -Wall $(HOSTINCFLAGS)
LDFLAGS 	 = -Ttext $(KERNADDR) -M
AR		 = ar
RANLIB		 = ranlib

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