]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
1 | # |
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. | |
5 | # | |
6 | ||
7 | DIR = util | |
8 | include ../MakePaths.dir | |
9 | ||
10 | VPATH = $(OBJROOT):$(SYMROOT) | |
11 | ||
12 | INSTALLDIR = $(DSTROOT)/usr/standalone/i386 | |
13 | LOCALBIN = $(DSTROOT)/usr/local/bin | |
14 | LANGDIR = $(INSTALLDIR)/English.lproj | |
15 | ||
16 | OPTIM = -Os | |
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 | |
20 | MFILES = dumptiff.m | |
21 | HFILES = cursor.h | |
22 | EXPORT_HFILES = bitmap.h font.h | |
23 | ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES) | |
24 | ||
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) | |
28 | ||
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 | |
33 | ||
34 | FONTFILES = 14.TimesIta | |
35 | FONT_HFILES = FontBitmap.h | |
36 | ||
37 | #PROGRAMS = machOconv mkfont dumptiff sig | |
38 | PROGRAMS = machOconv | |
39 | ||
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 | |
44 | SIG = $(SYMROOT)/sig | |
45 | SIG_OBJS = sig.o | |
46 | ||
47 | DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR) $(LOCALBIN) | |
48 | ||
49 | #BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image | |
50 | BITMAPS = Panel.image | |
51 | FONTS = Default.font | |
52 | ||
53 | .SUFFIXES: .tiff | |
54 | .tiff.h: | |
55 | $(DUMPTIFF) -o $(SYMROOT)/$* $< | |
56 | ||
57 | #all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES) | |
58 | all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS) | |
59 | ||
60 | #clean:: | |
61 | # cd $(SYMROOT); rm -f $(OUTFILES) | |
62 | clean:: | |
63 | -(cd $(SYMROOT); rm -f $(PROGRAMS)) | |
64 | ||
65 | install_i386:: $(INSTALLDIR) $(LANGDIR) | |
66 | cp $(BITMAPS) $(INSTALLDIR) | |
67 | cp $(FONTS) $(INSTALLDIR)/English.lproj | |
68 | ||
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) | |
76 | ||
77 | hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF) | |
78 | $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff | |
79 | ||
80 | sig: $(SIG_OBJS) | |
81 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(SIG_OBJS) | |
82 | ||
83 | dumptiff: $(DUMPTIFF_OBJS) | |
84 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(DUMPTIFF_OBJS) -lNeXT_s | |
85 | ||
86 | mkfont: mkfont.o | |
87 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) mkfont.o | |
88 | ||
89 | machOconv: machOconv.o | |
90 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o | |
91 | ||
92 | include ../MakeInc.dir | |
93 | ||
94 | #dependencies | |
95 | -include $(OBJROOT)/Makedep | |
96 |