1 export USE_APPLE_PB_SUPPORT = all
3 # Makefile for kernel booter
5 # CFLAGS = -O $(MORECPP) -arch i386 -g
10 ifneq "" "$(wildcard /bin/mkdirs)"
13 MKDIRS = /bin/mkdir -p
23 ARCHLESS_RC_CFLAGS=`echo $(RC_CFLAGS) | sed 's/-arch [a-z0-9]*//g'`
25 VPATH = $(OBJROOT):$(SYMROOT)
30 # Currently builds for i386
33 all tags clean debug install installhdrs: $(SYMROOT) $(OBJROOT)
34 @if [ -z "$(RC_ARCHS)" ]; then \
37 SUBDIRS="$(GENERIC_SUBDIRS) $$RC_ARCHS"; \
41 echo ================= make $@ for $$i =================; \
42 ( OBJROOT=$(OBJROOT)/$${i}; \
43 SYMROOT=$(SYMROOT)/$${i}; \
45 XCFLAGS=$(ARCHLESS_RC_CFLAGS); \
46 GENSUBDIRS="$(GENERIC_SUBDIRS)"; \
47 for x in $$GENSUBDIRS; \
49 if [ "$$x" == "$$i" ]; then \
50 XCFLAGS="$(RC_CFLAGS)"; \
54 echo "$$OBJROOT $$SYMROOT $$DSTROOT"; \
60 "RC_ARCHS=$$RC_ARCHS" \
62 "RC_KANJI=$(RC_KANJI)" \
63 "JAPANESE=$(JAPANESE)" \
64 "RC_CFLAGS=$$XCFLAGS" $@ \
67 echo "========= nothing to build for $$i ========="; \
72 gnutar cf - . | (cd ${SRCROOT}; gnutar xpf -)
74 $(SYMROOT) $(OBJROOT) $(DSTROOT):