unstack - fix ipcvecs
[minix.git] / sys / arch / i386 / stand / lib / Makefile
blob871771e667817b1d8c3177d6aa5fc872149e9235
1 # $NetBSD: Makefile,v 1.36 2012/08/10 12:18:15 joerg 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 AFLAGS.biosdelay.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
15 AFLAGS.biosgetrtc.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
16 AFLAGS.biosgetsystime.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
17 AFLAGS.biosmca.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
18 AFLAGS.biosmemps2.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
19 AFLAGS.biosmem.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
20 AFLAGS.biosmemx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
21 AFLAGS.biosreboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
22 AFLAGS.biosvbe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
23 AFLAGS.biosvideomode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
24 AFLAGS.bios_disk.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
25 AFLAGS.bios_pci.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
26 AFLAGS.comio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
27 AFLAGS.conio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
28 AFLAGS.dos_file.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
29 AFLAGS.dump_eax.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
30 AFLAGS.message.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
31 AFLAGS.message32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
32 AFLAGS.pvcopy.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
33 AFLAGS.putstr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
34 AFLAGS.putstr32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
35 AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
37 CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
38 #CPPFLAGS+= -DDISK_DEBUG
39 #CPPFLAGS+= -DNO_DISKLABEL
40 #CPPFLAGS+= -DNO_GPT
41 #CPPFLAGS+= -DSAVE_MEMORY
43 SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
44 SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
45 SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
46 SRCS+= pread.c menuutils.c parseutils.c
47 SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
48 SRCS+= startprog.S multiboot.S
49 SRCS+= biosgetsystime.S cpufunc.S bootmenu.c
50 SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
51 SRCS+= rasops.c vbe.c biosvbe.S
52 .if (${I386_INCLUDE_DISK} == "yes")
53 SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
54 .endif
55 .if (${I386_INCLUDE_DOS} == "yes")
56 SRCS+= dosfile.c dos_file.S
57 .endif
58 .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
59 SRCS+= diskbuf.c
60 .endif
61 .if (${I386_INCLUDE_BUS} == "yes")
62 SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
63 .endif
64 .if (${I386_INCLUDE_PS2} == "yes")
65 SRCS+= biosmca.S biosmemps2.S
66 .endif
68 .include <bsd.own.mk>
69 .undef DESTDIR
70 .include <bsd.lib.mk>
72 lib${LIB}.o:: ${OBJS}
73 @echo building standard ${LIB} library
74 @rm -f lib${LIB}.o
75 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
77 # XXX
78 .if ${HAVE_GCC:U} == 45
79 COPTS.biosdisk.c+= -fno-strict-aliasing
80 .endif