]>
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 | |
14c7c974 A |
17 | |
18 | # | |
19 | # these paths are only valid in subdirectories of this directory | |
20 | # | |
21 | OBJROOT=`pwd`/../../obj/i386 | |
22 | SYMROOT=`pwd`/../../sym/i386 | |
23 | DSTROOT=`pwd`/../../dst/i386 | |
24 | SRCROOT=/tmp | |
25 | ||
26 | VPATH = $(OBJROOT):$(SYMROOT) | |
27 | ||
f083c6c3 | 28 | # The order of building is important. |
57c72a9a | 29 | SUBDIRS = util libsa libsaio nasm boot2 boot1 boot1u boot0 cdboot strings |
14c7c974 A |
30 | |
31 | all 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 | ||
47 | installsrc: | |
48 | tar cf - . | (cd ${SRCROOT}; tar xfBp -) |