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 -Werror -g -I../rcz -nostdinc -nostdlib -I/usr/include \
18 -I/System/Library/Frameworks/System.framework/Headers
19 LDFLAGS = -L/usr/lib -lcrt1.o -lSystem -lcc_dynamic
20 CFILES = machOconv.c mkfont.c tif_packbits.c
23 EXPORT_HFILES = bitmap.h font.h
24 ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)
26 TIFFILES = return.tiff ns_box.tiff ns_text.tiff ns_logo.tiff dot.tiff
27 TIFF_HFILES = $(TIFFILES:.tiff=.h)
28 TIFF_BFILES = $(TIFFILES:.tiff=_bitmap.h)
30 CURSOR_HFILES = ns_wait1.h ns_wait1_bitmap.h \
31 ns_wait2.h ns_wait2_bitmap.h \
32 ns_wait3.h ns_wait3_bitmap.h
33 OTHER_HFILES = hdot.h hdot_bitmap.h
35 FONTFILES = 14.TimesIta
36 FONT_HFILES = FontBitmap.h
38 #PROGRAMS = machOconv mkfont dumptiff sig
41 OUTFILES = $(PROGRAMS) $(TIFF_HFILES) $(TIFF_BFILES) $(CURSOR_HFILES) \
42 $(FONT_HFILES) $(OTHER_HFILES)
43 DUMPTIFF = $(SYMROOT)/dumptiff
44 DUMPTIFF_OBJS = tif_packbits.o dumptiff.o BooterBitmap.o
48 DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR)
50 #BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image
56 $(DUMPTIFF) -o $(SYMROOT)/$* $<
58 #all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES)
59 all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS)
62 # cd $(SYMROOT); rm -f $(OUTFILES)
64 -(cd $(SYMROOT); rm -f $(PROGRAMS))
66 install_i386:: $(INSTALLDIR) $(LANGDIR)
67 cp $(BITMAPS) $(INSTALLDIR)
68 cp $(FONTS) $(INSTALLDIR)/English.lproj
70 $(TIFF_HFILES): $(DUMPTIFF)
71 $(TIFF_BFILES): $(TIFF_HFILES)
72 $(CURSOR_HFILES): CURSOR_HFILES
73 CURSOR_HFILES: $(DUMPTIFF)
74 $(DUMPTIFF) -c -o $(SYMROOT)/ns_wait
75 $(FONT_HFILES): mkfont $(FONTFILES)
76 mkfont $(FONTFILES) -c $(SYMROOT)/$(@F)
78 hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF)
79 $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff
82 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(SIG_OBJS)
84 dumptiff: $(DUMPTIFF_OBJS)
85 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(DUMPTIFF_OBJS) -lNeXT_s
88 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) mkfont.o
90 machOconv: machOconv.o
91 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o
93 include ../MakeInc.dir
96 -include $(OBJROOT)/Makedep