NetBSD/sys/arch/pmax/stand/Makefile.inc
simonb 65fca13b07 More Makefile cleanups:
+ Don't use our own "clean" and "depend" targets
 + "make depend" works
 + Only include each include path once on compile lines
 + Clean up include file names
 + Don't build a separate libdrive.a, just specify driver source files
 + Use "make print-objdir" instead of old "printf ... | make -f-"
 + Remove more unnecessary targets, variables and other cruft

Still builds identical bootblocks to 1.3.3 with gcc, still too large
with egcs.

dec_boot.h, dec_exec.h & dec_prom.h were copied via respository
copy to sys/arch/pmax/stand/libsa.
1999-01-22 14:05:05 +00:00

26 lines
705 B
Makefile

# $NetBSD: Makefile.inc,v 1.3 1999/01/22 14:05:05 simonb Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
BINDIR= /usr/mdec
BINMODE=444
# Tailor C compilation for standalone environment.
COPTS= -O2 # -O2 gives smaller code
C_MACHDEP=-mno-abicalls -G 64 # may give smaller code
# We are so tight for space, ifdef away symlnks and spinning propellers.
DEFS?= -D_STANDALONE -DSMALL -DNO_TWIDDLE
INCL?= -I${.CURDIR} -I$S -I${.CURDIR}/../libsa -I$S/lib/libsa
CFLAGS= ${COPTS} ${CWARN} ${INCPATH} ${DEFS} ${C_MACHDEP}
AFLAGS= -O2 ${INCPATH} ${DEFS} -D_LOCORE
CPPFLAGS= ${INCL}
# be sure to turn off any PIC flags for standalone library code.
CPICFLAGS=
CAPICFLAGS=
CPPPICFLAGS=
APICFLAGS=