Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.32.2.1
      1  1.32.2.1    cherry #	$NetBSD: Makefile,v 1.32.2.1 2011/06/23 14:19:16 cherry Exp $
      2       1.1     perry 
      3      1.28   tsutsui S?=	${.CURDIR}/../../../..
      4       1.1     perry 
      5       1.1     perry LIB= i386
      6      1.20        tv NOPIC=# defined
      7      1.20        tv NOPROFILE=# defined
      8       1.1     perry 
      9       1.1     perry I386_INCLUDE_DISK?= yes
     10       1.1     perry I386_INCLUDE_DOS?= no
     11       1.1     perry I386_INCLUDE_BUS?= no
     12      1.18  jdolecek I386_INCLUDE_PS2?= yes
     13       1.1     perry 
     14      1.32     joerg AFLAGS.biosdelay.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     15      1.32     joerg AFLAGS.biosgetrtc.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     16      1.32     joerg AFLAGS.biosgetsystime.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     17      1.32     joerg AFLAGS.biosmca.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     18      1.32     joerg AFLAGS.biosmemps2.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     19      1.32     joerg AFLAGS.biosmem.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     20      1.32     joerg AFLAGS.biosmemx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     21      1.32     joerg AFLAGS.biosreboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     22      1.32     joerg AFLAGS.biosvbe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     23      1.32     joerg AFLAGS.biosvideomode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     24      1.32     joerg AFLAGS.bios_disk.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     25      1.32     joerg AFLAGS.bios_pci.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     26      1.32     joerg AFLAGS.comio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     27      1.32     joerg AFLAGS.conio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     28      1.32     joerg AFLAGS.dos_file.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     29      1.32     joerg AFLAGS.dump_eax.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     30      1.32     joerg AFLAGS.message.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     31      1.32     joerg AFLAGS.message32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     32      1.32     joerg AFLAGS.pvcopy.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     33      1.32     joerg AFLAGS.putstr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     34  1.32.2.1    cherry AFLAGS.putstr32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     35      1.32     joerg AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     36      1.32     joerg 
     37       1.1     perry CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
     38       1.1     perry #CPPFLAGS+= -DDISK_DEBUG
     39       1.1     perry #CPPFLAGS+= -DNO_DISKLABEL
     40      1.31  jakllsch #CPPFLAGS+= -DNO_GPT
     41       1.1     perry #CPPFLAGS+= -DSAVE_MEMORY
     42       1.1     perry 
     43      1.14    tsarna SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
     44       1.4  drochner SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
     45      1.13  drochner SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
     46      1.11  drochner SRCS+= pread.c menuutils.c parseutils.c
     47      1.11  drochner SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
     48      1.30  jakllsch SRCS+= startprog.S multiboot.S
     49      1.26        ad SRCS+= biosgetsystime.S cpufunc.S bootmenu.c
     50  1.32.2.1    cherry SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
     51      1.27  jmcneill SRCS+= rasops.c vbe.c biosvbe.S
     52       1.1     perry .if (${I386_INCLUDE_DISK} == "yes")
     53       1.1     perry SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
     54       1.1     perry .endif
     55       1.1     perry .if (${I386_INCLUDE_DOS} == "yes")
     56       1.1     perry SRCS+= dosfile.c dos_file.S
     57       1.1     perry .endif
     58       1.1     perry .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
     59       1.1     perry SRCS+= diskbuf.c
     60       1.1     perry .endif
     61       1.1     perry .if (${I386_INCLUDE_BUS} == "yes")
     62       1.1     perry SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
     63      1.18  jdolecek .endif
     64      1.18  jdolecek .if (${I386_INCLUDE_PS2} == "yes")
     65      1.21  jdolecek SRCS+= biosmca.S biosmemps2.S
     66       1.1     perry .endif
     67       1.1     perry 
     68      1.19        tv .include <bsd.own.mk>
     69      1.19        tv .undef DESTDIR
     70       1.1     perry .include <bsd.lib.mk>
     71       1.1     perry 
     72       1.1     perry lib${LIB}.o:: ${OBJS}
     73       1.1     perry 	@echo building standard ${LIB} library
     74       1.1     perry 	@rm -f lib${LIB}.o
     75       1.1     perry 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     76