]> git.saurik.com Git - apple/boot.git/blame - i386/Makefile
boot-122.tar.gz
[apple/boot.git] / i386 / Makefile
CommitLineData
14c7c974
A
1
2# Makefile for i386 boot program
3# define FLOPPY and SMALL using DEFINES macro as necessary
4
75b89a82 5CFLAGS = -O $(MORECPP) -arch i386 -g -static
14c7c974
A
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
14c7c974
A
17
18#
19# these paths are only valid in subdirectories of this directory
20#
21OBJROOT=`pwd`/../../obj/i386
22SYMROOT=`pwd`/../../sym/i386
23DSTROOT=`pwd`/../../dst/i386
24SRCROOT=/tmp
25
26VPATH = $(OBJROOT):$(SYMROOT)
27
f083c6c3 28# The order of building is important.
57c72a9a 29SUBDIRS = util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings
14c7c974
A
30
31all tags clean debug install installhdrs:
32 @for i in ${SUBDIRS}; \
33 do \
34 echo ================= make $@ for $$i =================; \
35 ( cd $$i; ${MAKE} \
36 "OBJROOT=$(OBJROOT)/$$i" \
37 "SYMROOT=$(SYMROOT)" \
38 "DSTROOT=$(DSTROOT)" \
39 "SRCROOT=$(SRCROOT)" \
40 "RC_ARCHS=$(RC_ARCHS)" \
41 "RC_KANJI=$(RC_KANJI)" \
42 "JAPANESE=$(JAPANESE)" \
43 "RC_CFLAGS=$(RC_CFLAGS)" $@ \
57c72a9a 44 ) || exit $$?; \
14c7c974
A
45 done
46
47installsrc:
48 tar cf - . | (cd ${SRCROOT}; tar xfBp -)