2 # Until I can remove the dependency on the appkit,
3 # we'll just keep the generated files in this directory
4 # and install them directly, rather than generating them again.
8 include ../MakePaths.dir
10 VPATH = $(OBJROOT):$(SYMROOT)
12 INSTALLDIR = $(DSTROOT)/usr/standalone/i386
13 LOCALBIN = $(DSTROOT)/usr/local/bin
14 LANGDIR = $(INSTALLDIR)/English.lproj
17 CFLAGS = $(RC_CFLAGS) $(OPTIM) -Wmost -Wno-precomp -g -I../rcz -traditional-cpp -nostdinc -nostdlib -I/usr/include -I/System/Library/Frameworks/System.framework/Headers
18 LDFLAGS = /usr/lib/crt1.o /System/Library/Frameworks/System.framework/System -lcc
19 CFILES = machOconv.c mkfont.c tif_packbits.c
22 EXPORT_HFILES = bitmap.h font.h
23 ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)
25 TIFFILES = return.tiff ns_box.tiff ns_text.tiff ns_logo.tiff dot.tiff
26 TIFF_HFILES = $(TIFFILES:.tiff=.h)
27 TIFF_BFILES = $(TIFFILES:.tiff=_bitmap.h)
29 CURSOR_HFILES = ns_wait1.h ns_wait1_bitmap.h \
30 ns_wait2.h ns_wait2_bitmap.h \
31 ns_wait3.h ns_wait3_bitmap.h
32 OTHER_HFILES = hdot.h hdot_bitmap.h
34 FONTFILES = 14.TimesIta
35 FONT_HFILES = FontBitmap.h
37 #PROGRAMS = machOconv mkfont dumptiff sig
40 OUTFILES = $(PROGRAMS) $(TIFF_HFILES) $(TIFF_BFILES) $(CURSOR_HFILES) \
41 $(FONT_HFILES) $(OTHER_HFILES)
42 DUMPTIFF = $(SYMROOT)/dumptiff
43 DUMPTIFF_OBJS = tif_packbits.o dumptiff.o BooterBitmap.o
47 DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR) $(LOCALBIN)
49 #BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image
55 $(DUMPTIFF) -o $(SYMROOT)/$* $<
57 #all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES)
58 all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS)
61 # cd $(SYMROOT); rm -f $(OUTFILES)
63 -(cd $(SYMROOT); rm -f $(PROGRAMS))
65 install_i386:: $(INSTALLDIR) $(LANGDIR)
66 cp $(BITMAPS) $(INSTALLDIR)
67 cp $(FONTS) $(INSTALLDIR)/English.lproj
69 $(TIFF_HFILES): $(DUMPTIFF)
70 $(TIFF_BFILES): $(TIFF_HFILES)
71 $(CURSOR_HFILES): CURSOR_HFILES
72 CURSOR_HFILES: $(DUMPTIFF)
73 $(DUMPTIFF) -c -o $(SYMROOT)/ns_wait
74 $(FONT_HFILES): mkfont $(FONTFILES)
75 mkfont $(FONTFILES) -c $(SYMROOT)/$(@F)
77 hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF)
78 $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff
81 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(SIG_OBJS)
83 dumptiff: $(DUMPTIFF_OBJS)
84 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(DUMPTIFF_OBJS) -lNeXT_s
87 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) mkfont.o
89 machOconv: machOconv.o
90 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o
92 include ../MakeInc.dir
95 -include $(OBJROOT)/Makedep