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