Makefile revision 1.47
1#	$NetBSD: Makefile,v 1.47 2019/09/13 02:19:46 manu Exp $
2
3S?=	${.CURDIR}/../../../..
4
5LIB= i386
6NOPIC=# defined
7NOPROFILE=# defined
8
9I386_INCLUDE_DISK?= yes
10I386_INCLUDE_DOS?= no
11I386_INCLUDE_BUS?= no
12I386_INCLUDE_PS2?= yes
13
14AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
15
16CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
17#CPPFLAGS+= -DDISK_DEBUG
18#CPPFLAGS+= -DNO_DISKLABEL
19#CPPFLAGS+= -DNO_GPT
20#CPPFLAGS+= -DNO_RAIDFRAME
21#CPPFLAGS+= -DNO_MULTIBOOT2
22#CPPFLAGS+= -DSAVE_MEMORY
23
24SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
25SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
26SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
27SRCS+= pread.c menuutils.c parseutils.c
28SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
29SRCS+= startprog.S multiboot.S
30SRCS+= biosgetsystime.S cpufunc.S bootmenu.c
31SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
32SRCS+= rasops.c vbe.c biosvbe.S
33.if (${I386_INCLUDE_DISK} == "yes")
34SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
35.endif
36.if (${I386_INCLUDE_DOS} == "yes")
37SRCS+= dosfile.c dos_file.S
38.endif
39.if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
40SRCS+= diskbuf.c
41.endif
42.if (${I386_INCLUDE_BUS} == "yes")
43SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
44.endif
45.if (${I386_INCLUDE_PS2} == "yes")
46SRCS+= biosmca.S biosmemps2.S
47.endif
48
49.include <bsd.own.mk>
50.undef DESTDIR
51.include <bsd.lib.mk>
52
53lib${LIB}.o:: ${OBJS:O}
54	@echo building standard ${LIB} library
55	@rm -f lib${LIB}.o
56	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
57