Makefile.inc revision 1.1 1 # $NetBSD: Makefile.inc,v 1.1 1997/02/04 03:51:38 thorpej Exp $
2
3 BINDIR= /usr/mdec
4
5 # RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long
6 RELOC= FFF00000
7
8 CPPFLAGS+= -DDCACONSOLE -DITECONSOLE -DDCMCONSOLE
9 CPPFLAGS+= -DSTANDALONE -DCOMPAT_NOLABEL -Dhp300
10 CPPFLAGS+= -DCOMPAT_UFS -DNO_LSEEK
11
12 COMMONSOURCE= autoconf.c clock.c conf.c cons.c devopen.c \
13 machdep.c prf.c rawfs.c srt0.s netio.c
14 DRIVERSOURCE= ct.c dca.c dcm.c fhpib.c hil.c hpib.c if_le.c \
15 ite.c ite_dv.c ite_gb.c ite_rb.c ite_subr.c \
16 ite_tc.c ite_hy.c nhpib.c rd.c scsi.c sd.c
17
18 ### Figure out what to use for mkboot
19 MKBOOTDIR= ${.CURDIR}/../mkboot
20
21 .if exists(${MKBOOTDIR}/obj.${MACHINE})
22 MKBOOTOBJDIR= ${MKBOOTDIR}/obj.${MACHINE}
23 .elif exists (${MKBOOTDIR}/obj)
24 MKBOOTOBJDIR= ${MKBOOTDIR}/obj
25 .else
26 MKBOOTOBJDIR= ${MKBOOTDIR}
27 .endif
28
29 MKBOOT_PROG= ${MKBOOTOBJDIR}/mkboot
30
31 # Make sure ${MKBOOT_PROG} is always available
32 ${MKBOOT_PROG}:
33 @cd ${MKBOOTDIR} && make depend && make
34