boot-80.1.tar.gz
[apple/boot.git] / gen / util / Makefile
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 LANGDIR = $(INSTALLDIR)/English.lproj
14
15 CFLAGS = -Wmost -Wno-precomp -g
16
17 CFILES = machOconv.c mkfont.c tif_packbits.c
18 MFILES = dumptiff.m
19 HFILES = cursor.h
20 EXPORT_HFILES = bitmap.h font.h
21 ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)
22
23 TIFFILES = return.tiff ns_box.tiff ns_text.tiff ns_logo.tiff dot.tiff
24 TIFF_HFILES = $(TIFFILES:.tiff=.h)
25 TIFF_BFILES = $(TIFFILES:.tiff=_bitmap.h)
26
27 CURSOR_HFILES = ns_wait1.h ns_wait1_bitmap.h \
28 ns_wait2.h ns_wait2_bitmap.h \
29 ns_wait3.h ns_wait3_bitmap.h
30 OTHER_HFILES = hdot.h hdot_bitmap.h
31
32 FONTFILES = 14.TimesIta
33 FONT_HFILES = FontBitmap.h
34
35 #PROGRAMS = machOconv mkfont dumptiff sig
36 PROGRAMS = machOconv
37
38 OUTFILES = $(PROGRAMS) $(TIFF_HFILES) $(TIFF_BFILES) $(CURSOR_HFILES) \
39 $(FONT_HFILES) $(OTHER_HFILES)
40 DUMPTIFF = $(SYMROOT)/dumptiff
41 DUMPTIFF_OBJS = tif_packbits.o dumptiff.o BooterBitmap.o
42 SIG = $(SYMROOT)/sig
43 SIG_OBJS = sig.o
44
45 DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR)
46
47 #BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image
48 BITMAPS = Panel.image
49 FONTS = Default.font
50
51 .SUFFIXES: .tiff
52 .tiff.h:
53 $(DUMPTIFF) -o $(SYMROOT)/$* $<
54
55 #all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES)
56 all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS)
57
58 #clean::
59 # cd $(SYMROOT); rm -f $(OUTFILES)
60 clean::
61 cd $(SYMROOT); rm -f $(PROGRAMS)
62
63 install_i386:: $(INSTALLDIR) $(LANGDIR)
64 cp $(BITMAPS) $(INSTALLDIR)
65 cp $(FONTS) $(INSTALLDIR)/English.lproj
66
67 $(TIFF_HFILES): $(DUMPTIFF)
68 $(TIFF_BFILES): $(TIFF_HFILES)
69 $(CURSOR_HFILES): CURSOR_HFILES
70 CURSOR_HFILES: $(DUMPTIFF)
71 $(DUMPTIFF) -c -o $(SYMROOT)/ns_wait
72 $(FONT_HFILES): mkfont $(FONTFILES)
73 mkfont $(FONTFILES) -c $(SYMROOT)/$@
74
75 hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF)
76 $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff
77
78 sig: $(SIG_OBJS)
79 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$@ $(SIG_OBJS)
80
81 dumptiff: $(DUMPTIFF_OBJS)
82 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$@ $(DUMPTIFF_OBJS) -lNeXT_s
83
84 mkfont: mkfont.o
85 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$@ mkfont.o
86
87 machOconv: machOconv.o
88 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$@ machOconv.o
89
90 include ../MakeInc.dir
91
92 #dependencies
93 -include $(OBJROOT)/Makedep
94