]> git.saurik.com Git - apple/boot.git/blame - Makefile
boot-80.1.tar.gz
[apple/boot.git] / Makefile
CommitLineData
14c7c974
A
1export USE_APPLE_PB_SUPPORT = all
2
3# Makefile for kernel booter
4
5# CFLAGS = -O $(MORECPP) -arch i386 -g -munaligned-text
6DEFINES=
7CONFIG = hd
8LIBDIR = libsa
9INC = -I. -I$(LIBDIR)
10ifneq "" "$(wildcard /bin/mkdirs)"
11 MKDIRS = /bin/mkdirs
12else
13 MKDIRS = /bin/mkdir -p
14endif
15AS = as
16LD = ld
17PAX = /bin/pax
18
19OBJROOT = `pwd`/obj
20SYMROOT = `pwd`/sym
21DSTROOT = `pwd`/dst
22SRCROOT = /tmp
23ARCHLESS_RC_CFLAGS=`echo $(RC_CFLAGS) | sed 's/-arch [a-z0-9]*//g'`
24
25VPATH = $(OBJROOT):$(SYMROOT)
26
27GENERIC_SUBDIRS = gen
28
29#
30# Currently builds for i386
31#
32
33all 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
62installsrc:
63 gnutar cf - . | (cd ${SRCROOT}; gnutar xpf -)
64
65$(SYMROOT) $(OBJROOT) $(DSTROOT):
66 @$(MKDIRS) $@