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