]> git.saurik.com Git - apple/boot.git/blob - i386/Makefile
boot-122.tar.gz
[apple/boot.git] / i386 / Makefile
1
2 # Makefile for i386 boot program
3 # define FLOPPY and SMALL using DEFINES macro as necessary
4
5 CFLAGS = -O $(MORECPP) -arch i386 -g -static
6 DEFINES=
7 CONFIG = hd
8 LIBDIR = libsa
9 INC = -I. -I$(LIBDIR)
10 ifneq "" "$(wildcard /bin/mkdirs)"
11 MKDIRS = /bin/mkdirs
12 else
13 MKDIRS = /bin/mkdir -p
14 endif
15 AS = as
16 LD = ld
17
18 #
19 # these paths are only valid in subdirectories of this directory
20 #
21 OBJROOT=`pwd`/../../obj/i386
22 SYMROOT=`pwd`/../../sym/i386
23 DSTROOT=`pwd`/../../dst/i386
24 SRCROOT=/tmp
25
26 VPATH = $(OBJROOT):$(SYMROOT)
27
28 # The order of building is important.
29 SUBDIRS = util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings
30
31 all tags clean debug install installhdrs:
32 @for i in ${SUBDIRS}; \
33 do \
34 echo ================= make $@ for $$i =================; \
35 ( cd $$i; ${MAKE} \
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)" $@ \
44 ) || exit $$?; \
45 done
46
47 installsrc:
48 tar cf - . | (cd ${SRCROOT}; tar xfBp -)