]> git.saurik.com Git - apple/boot.git/blob - i386/testmodule/install/Makefile
boot-80.1.tar.gz
[apple/boot.git] / i386 / testmodule / install / Makefile
1
2 # Makefile for i386 boot program
3 # define FLOPPY and SMALL using DEFINES macro as necessary
4
5 DIR = install
6 include ../MakePaths.dir
7
8 DEBUG = -g
9 CFLAGS = $(DEBUG) $(MORECPP) -arch i386 -Wmost -DINSTALL_INTERNAL_USER
10 DEFINES=
11 CONFIG = hd
12 SYMDIR = $(SYMROOT)
13 LIBSADIR = ../libsa
14 LIBSAIODIR = ../libsaio
15 UTILDIR = ../util
16 INC = -I. -I$(SYMDIR) -I$(LIBSADIR) -I$(LIBSAIODIR) -I$(UTILDIR)
17 ifneq "" "$(wildcard /bin/mkdirs)"
18 MKDIRS = /bin/mkdirs
19 else
20 MKDIRS = /bin/mkdir -p
21 endif
22 AS = as
23 LD = ld
24
25 LIBSA = $(SYMDIR)/libsa.a
26 LIBSAIO = $(SYMDIR)/libsaio.a
27 LIBS = $(LIBSAIO) $(LIBSA)
28
29 OTHER_FILES =
30
31 INSTALLDIR = $(DSTROOT)/usr/standalone/i386
32 VPATH = $(OBJROOT):$(SYMROOT)
33
34 OBJS = choose.o mode.o install_table.o
35
36 UTILDIR = ../util
37 SFILES = boot2.s
38 CFILES = boot.c load.c stringTable.c graphics.c browser.c \
39 button.c scrollbar.c prompt.c
40 HFILES = kernBootStruct.h
41 OTHERFILES = Makefile machOconv.c README
42 ALLSRC = $(FOREIGNSRC) $(FOREIGNBIN) $(SFILES) $(CFILES) \
43 $(HFILES) $(OTHERFILES)
44 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
45 BOOT2ADDR = 3000
46
47 SIG = $(SYMROOT)/sig
48 GENFILES = $(SYMROOT)/install_internal.h \
49 $(SYMROOT)/install_external.h \
50 $(SYMROOT)/install_table.c \
51 $(SYMROOT)/install_defs.h
52
53 all: $(DIRS_NEEDED) install_external.h install.module
54
55 install.module: $(SYMROOT) $(OBJS)
56 $(CC) $(COPTS) $(CFLAGS) $(RC_CFLAGS) -o $@ \
57 $(OBJS) \
58 -e _install_functions -u _install_functions \
59 -seg1addr 30000 -preload -nostdlib $(LIBS)
60
61 install_internal.h: install_external.h
62 install_table.c: install_external.h
63 install_defs.h: install_external.h
64 install_external.h: install.def
65 $(SIG) -d $(SYMROOT) -n install install.def
66
67 install_i386:: all $(INSTALLDIR)
68 cp $(SYMROOT)/boot $(OTHER_FILES) $(INSTALLDIR)
69 cd $(INSTALLDIR); chmod u+w boot $(OTHER_FILES)
70
71 clean::
72 rm -f $(SYMROOT)/boot.sys $(GENFILES)
73
74 include ../MakeInc.dir
75
76 #dependencies
77 -include $(OBJROOT)/Makedep