Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / i386 / stand / lib / Makefile
blobe1440a2a5970910801f48447436cdb38a15fe872
1 # $NetBSD: Makefile,v 1.28 2009/03/30 09:22:52 tsutsui Exp $
3 S?= ${.CURDIR}/../../../..
5 LIB= i386
6 NOPIC=# defined
7 NOPROFILE=# defined
9 I386_INCLUDE_DISK?= yes
10 I386_INCLUDE_DOS?= no
11 I386_INCLUDE_BUS?= no
12 I386_INCLUDE_PS2?= yes
14 CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
15 #CPPFLAGS+= -DDISK_DEBUG
16 #CPPFLAGS+= -DNO_DISKLABEL
17 #CPPFLAGS+= -DSAVE_MEMORY
19 SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
20 SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
21 SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
22 SRCS+= pread.c menuutils.c parseutils.c
23 SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
24 SRCS+= startprog.S multiboot.S panic.c
25 SRCS+= biosgetsystime.S cpufunc.S bootmenu.c
26 SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S
27 SRCS+= rasops.c vbe.c biosvbe.S
28 .if (${I386_INCLUDE_DISK} == "yes")
29 SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
30 .endif
31 .if (${I386_INCLUDE_DOS} == "yes")
32 SRCS+= dosfile.c dos_file.S
33 .endif
34 .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
35 SRCS+= diskbuf.c
36 .endif
37 .if (${I386_INCLUDE_BUS} == "yes")
38 SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
39 .endif
40 .if (${I386_INCLUDE_PS2} == "yes")
41 SRCS+= biosmca.S biosmemps2.S
42 .endif
44 .include <bsd.own.mk>
45 .undef DESTDIR
46 .include <bsd.lib.mk>
48 lib${LIB}.o:: ${OBJS}
49 @echo building standard ${LIB} library
50 @rm -f lib${LIB}.o
51 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`