]> git.saurik.com Git - apple/boot.git/blob - Makefile
boot-80.1.tar.gz
[apple/boot.git] / Makefile
1 export USE_APPLE_PB_SUPPORT = all
2
3 # Makefile for kernel booter
4
5 # CFLAGS = -O $(MORECPP) -arch i386 -g -munaligned-text
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 PAX = /bin/pax
18
19 OBJROOT = `pwd`/obj
20 SYMROOT = `pwd`/sym
21 DSTROOT = `pwd`/dst
22 SRCROOT = /tmp
23 ARCHLESS_RC_CFLAGS=`echo $(RC_CFLAGS) | sed 's/-arch [a-z0-9]*//g'`
24
25 VPATH = $(OBJROOT):$(SYMROOT)
26
27 GENERIC_SUBDIRS = gen
28
29 #
30 # Currently builds for i386
31 #
32
33 all tags clean debug install installhdrs: $(SYMROOT) $(OBJROOT)
34 @if [ -z "$(RC_ARCHS)" ]; then \
35 RC_ARCHS="i386"; \
36 fi; \
37 SUBDIRS="$(GENERIC_SUBDIRS) $$RC_ARCHS"; \
38 for i in $$SUBDIRS; \
39 do \
40 if [ -d $$i ]; then \
41 echo ================= make $@ for $$i =================; \
42 ( OBJROOT=$(OBJROOT)/$${i}; \
43 SYMROOT=$(SYMROOT)/$${i}; \
44 DSTROOT=$(DSTROOT); \
45 echo "$$OBJROOT $$SYMROOT $$DSTROOT"; \
46 cd $$i; ${MAKE} \
47 "OBJROOT=$$OBJROOT" \
48 "SYMROOT=$$SYMROOT" \
49 "DSTROOT=$$DSTROOT" \
50 "SRCROOT=$$SRCROOT" \
51 "RC_ARCHS=$$RC_ARCHS" \
52 "TARGET=$$i" \
53 "RC_KANJI=$(RC_KANJI)" \
54 "JAPANESE=$(JAPANESE)" \
55 "RC_CFLAGS=$(ARCHLESS_RC_CFLAGS)" $@ \
56 ) || exit $?; \
57 else \
58 echo "========= nothing to build for $$i ========="; \
59 fi; \
60 done
61
62 installsrc:
63 gnutar cf - . | (cd ${SRCROOT}; gnutar xpf -)
64
65 $(SYMROOT) $(OBJROOT) $(DSTROOT):
66 @$(MKDIRS) $@