Makefile.inc revision 1.3 1 # $NetBSD: Makefile.inc,v 1.3 1997/02/04 19:14:57 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 # Limit the alloc() heap to below the msgbuf and ROM scratch pages.
13 CPPFLAGS+= -DHEAP_LIMIT="0xffffdfff"
14
15 COMMONSOURCE= srt0.o autoconf.c clock.c conf.c cons.c devopen.c \
16 machdep.c prf.c rawfs.c netio.c
17 DRIVERSOURCE= ct.c dca.c dcm.c fhpib.c hil.c hpib.c if_le.c \
18 ite.c ite_dv.c ite_gb.c ite_rb.c ite_subr.c \
19 ite_tc.c ite_hy.c nhpib.c rd.c scsi.c sd.c
20
21 ### Figure out what to use for mkboot
22 MKBOOTDIR= ${.CURDIR}/../mkboot
23
24 .if exists(${MKBOOTDIR}/obj.${MACHINE})
25 MKBOOTOBJDIR= ${MKBOOTDIR}/obj.${MACHINE}
26 .elif exists (${MKBOOTDIR}/obj)
27 MKBOOTOBJDIR= ${MKBOOTDIR}/obj
28 .else
29 MKBOOTOBJDIR= ${MKBOOTDIR}
30 .endif
31
32 MKBOOT_PROG= ${MKBOOTOBJDIR}/mkboot
33
34 # Make sure ${MKBOOT_PROG} is always available
35 ${MKBOOT_PROG}:
36 @cd ${MKBOOTDIR} && make depend && make
37