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
20 # these paths are only valid in subdirectories of this directory
22 OBJROOT=`pwd`/../../obj/i386
23 SYMROOT=`pwd`/../../sym/i386
24 DSTROOT=`pwd`/../../dst/i386
27 VPATH = $(OBJROOT):$(SYMROOT)
29 # The order of building is important.
30 SUBDIRS = rcz util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings
32 all tags clean debug install installhdrs:
33 @for i in ${SUBDIRS}; \
35 echo ================= make $@ for $$i =================; \
37 "OBJROOT=$(OBJROOT)/$$i" \
38 "SYMROOT=$(SYMROOT)" \
39 "DSTROOT=$(DSTROOT)" \
40 "SRCROOT=$(SRCROOT)" \
41 "RC_ARCHS=$(RC_ARCHS)" \
42 "RC_KANJI=$(RC_KANJI)" \
43 "JAPANESE=$(JAPANESE)" \
44 "RC_CFLAGS=$(RC_CFLAGS)" $@ \
49 tar cf - . | (cd ${SRCROOT}; tar xfBp -)