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