2 # Makefile for i386 boot program
3 # define FLOPPY and SMALL using DEFINES macro as necessary
5 CFLAGS = -O $(MORECPP) -arch i386 -g -static
10 ifneq "" "$(wildcard /bin/mkdirs)"
13 MKDIRS = /bin/mkdir -p
19 # these paths are only valid in subdirectories of this directory
21 OBJROOT=`pwd`/../../obj/i386
22 SYMROOT=`pwd`/../../sym/i386
23 DSTROOT=`pwd`/../../dst/i386
26 VPATH = $(OBJROOT):$(SYMROOT)
28 # The order of building is important.
29 SUBDIRS = util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings
31 all tags clean debug install installhdrs:
32 @for i in ${SUBDIRS}; \
34 echo ================= make $@ for $$i =================; \
36 "OBJROOT=$(OBJROOT)/$$i" \
37 "SYMROOT=$(SYMROOT)" \
38 "DSTROOT=$(DSTROOT)" \
39 "SRCROOT=$(SRCROOT)" \
40 "RC_ARCHS=$(RC_ARCHS)" \
41 "RC_KANJI=$(RC_KANJI)" \
42 "JAPANESE=$(JAPANESE)" \
43 "RC_CFLAGS=$(RC_CFLAGS)" $@ \
48 tar cf - . | (cd ${SRCROOT}; tar xfBp -)