]> git.saurik.com Git - apple/boot.git/blame - i386/Makefile
boot-111.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
17# LIBS= -lc_static
18
19#
20# these paths are only valid in subdirectories of this directory
21#
22OBJROOT=`pwd`/../../obj/i386
23SYMROOT=`pwd`/../../sym/i386
24DSTROOT=`pwd`/../../dst/i386
25SRCROOT=/tmp
26
27VPATH = $(OBJROOT):$(SYMROOT)
28
f083c6c3
A
29# The order of building is important.
30SUBDIRS = rcz util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings
14c7c974
A
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)" $@ \
45 ) || exit $?; \
46 done
47
48installsrc:
49 tar cf - . | (cd ${SRCROOT}; tar xfBp -)