2 # Makefile for i386 boot program
3 # define FLOPPY and SMALL using DEFINES macro as necessary
6 include ../MakePaths.dir
9 CFLAGS = $(DEBUG) $(MORECPP) -arch i386 -Wmost -DINSTALL_INTERNAL_USER
14 LIBSAIODIR = ../libsaio
16 INC = -I. -I$(SYMDIR) -I$(LIBSADIR) -I$(LIBSAIODIR) -I$(UTILDIR)
17 ifneq "" "$(wildcard /bin/mkdirs)"
20 MKDIRS = /bin/mkdir -p
25 LIBSA = $(SYMDIR)/libsa.a
26 LIBSAIO = $(SYMDIR)/libsaio.a
27 LIBS = $(LIBSAIO) $(LIBSA)
31 INSTALLDIR = $(DSTROOT)/usr/standalone/i386
32 VPATH = $(OBJROOT):$(SYMROOT)
34 OBJS = choose.o mode.o install_table.o
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)
48 GENFILES = $(SYMROOT)/install_internal.h \
49 $(SYMROOT)/install_external.h \
50 $(SYMROOT)/install_table.c \
51 $(SYMROOT)/install_defs.h
53 all: $(DIRS_NEEDED) install_external.h install.module
55 install.module: $(SYMROOT) $(OBJS)
56 $(CC) $(COPTS) $(CFLAGS) $(RC_CFLAGS) -o $@ \
58 -e _install_functions -u _install_functions \
59 -seg1addr 30000 -preload -nostdlib $(LIBS)
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
67 install_i386:: all $(INSTALLDIR)
68 cp $(SYMROOT)/boot $(OTHER_FILES) $(INSTALLDIR)
69 cd $(INSTALLDIR); chmod u+w boot $(OTHER_FILES)
72 rm -f $(SYMROOT)/boot.sys $(GENFILES)
74 include ../MakeInc.dir
77 -include $(OBJROOT)/Makedep