]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
1 | |
2 | # Makefile for i386 boot program | |
3 | # define FLOPPY and SMALL using DEFINES macro as necessary | |
4 | ||
75b89a82 | 5 | CFLAGS = -O $(MORECPP) -arch i386 -g -static |
14c7c974 A |
6 | DEFINES= |
7 | CONFIG = hd | |
8 | LIBDIR = libsa | |
9 | INC = -I. -I$(LIBDIR) | |
10 | ifneq "" "$(wildcard /bin/mkdirs)" | |
11 | MKDIRS = /bin/mkdirs | |
12 | else | |
13 | MKDIRS = /bin/mkdir -p | |
14 | endif | |
15 | AS = as | |
16 | LD = ld | |
17 | # LIBS= -lc_static | |
18 | ||
19 | # | |
20 | # these paths are only valid in subdirectories of this directory | |
21 | # | |
22 | OBJROOT=`pwd`/../../obj/i386 | |
23 | SYMROOT=`pwd`/../../sym/i386 | |
24 | DSTROOT=`pwd`/../../dst/i386 | |
25 | SRCROOT=/tmp | |
26 | ||
27 | VPATH = $(OBJROOT):$(SYMROOT) | |
28 | ||
f083c6c3 A |
29 | # The order of building is important. |
30 | SUBDIRS = rcz util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings | |
14c7c974 A |
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 -) |