]>
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 | |
75b89a82 A |
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 | |
14c7c974 A |
20 | CFILES = machOconv.c mkfont.c tif_packbits.c |
21 | MFILES = dumptiff.m | |
22 | HFILES = cursor.h | |
23 | EXPORT_HFILES = bitmap.h font.h | |
24 | ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES) | |
25 | ||
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) | |
29 | ||
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 | |
34 | ||
35 | FONTFILES = 14.TimesIta | |
36 | FONT_HFILES = FontBitmap.h | |
37 | ||
38 | #PROGRAMS = machOconv mkfont dumptiff sig | |
39 | PROGRAMS = machOconv | |
40 | ||
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 | |
45 | SIG = $(SYMROOT)/sig | |
46 | SIG_OBJS = sig.o | |
47 | ||
f083c6c3 | 48 | DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR) |
14c7c974 A |
49 | |
50 | #BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image | |
51 | BITMAPS = Panel.image | |
52 | FONTS = Default.font | |
53 | ||
54 | .SUFFIXES: .tiff | |
55 | .tiff.h: | |
56 | $(DUMPTIFF) -o $(SYMROOT)/$* $< | |
57 | ||
58 | #all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES) | |
59 | all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS) | |
60 | ||
61 | #clean:: | |
62 | # cd $(SYMROOT); rm -f $(OUTFILES) | |
63 | clean:: | |
64 | -(cd $(SYMROOT); rm -f $(PROGRAMS)) | |
65 | ||
66 | install_i386:: $(INSTALLDIR) $(LANGDIR) | |
67 | cp $(BITMAPS) $(INSTALLDIR) | |
68 | cp $(FONTS) $(INSTALLDIR)/English.lproj | |
69 | ||
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) | |
77 | ||
78 | hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF) | |
79 | $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff | |
80 | ||
81 | sig: $(SIG_OBJS) | |
82 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(SIG_OBJS) | |
83 | ||
84 | dumptiff: $(DUMPTIFF_OBJS) | |
85 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(DUMPTIFF_OBJS) -lNeXT_s | |
86 | ||
87 | mkfont: mkfont.o | |
88 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) mkfont.o | |
89 | ||
90 | machOconv: machOconv.o | |
91 | $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o | |
92 | ||
93 | include ../MakeInc.dir | |
94 | ||
95 | #dependencies | |
96 | -include $(OBJROOT)/Makedep | |
97 |