]> git.saurik.com Git - apple/boot.git/blame - i386/util/Makefile
boot-80.1.tar.gz
[apple/boot.git] / i386 / util / Makefile
CommitLineData
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
7DIR = util
8include ../MakePaths.dir
9
10VPATH = $(OBJROOT):$(SYMROOT)
11
12INSTALLDIR = $(DSTROOT)/usr/standalone/i386
13LOCALBIN = $(DSTROOT)/usr/local/bin
14LANGDIR = $(INSTALLDIR)/English.lproj
15
16OPTIM = -Os
17CFLAGS = $(RC_CFLAGS) $(OPTIM) -Wmost -Wno-precomp -g -I../rcz -traditional-cpp -nostdinc -nostdlib -I/usr/include -I/System/Library/Frameworks/System.framework/Headers
18LDFLAGS = /usr/lib/crt1.o /System/Library/Frameworks/System.framework/System -lcc
19CFILES = machOconv.c mkfont.c tif_packbits.c
20MFILES = dumptiff.m
21HFILES = cursor.h
22EXPORT_HFILES = bitmap.h font.h
23ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)
24
25TIFFILES = return.tiff ns_box.tiff ns_text.tiff ns_logo.tiff dot.tiff
26TIFF_HFILES = $(TIFFILES:.tiff=.h)
27TIFF_BFILES = $(TIFFILES:.tiff=_bitmap.h)
28
29CURSOR_HFILES = ns_wait1.h ns_wait1_bitmap.h \
30 ns_wait2.h ns_wait2_bitmap.h \
31 ns_wait3.h ns_wait3_bitmap.h
32OTHER_HFILES = hdot.h hdot_bitmap.h
33
34FONTFILES = 14.TimesIta
35FONT_HFILES = FontBitmap.h
36
37#PROGRAMS = machOconv mkfont dumptiff sig
38PROGRAMS = machOconv
39
40OUTFILES = $(PROGRAMS) $(TIFF_HFILES) $(TIFF_BFILES) $(CURSOR_HFILES) \
41 $(FONT_HFILES) $(OTHER_HFILES)
42DUMPTIFF = $(SYMROOT)/dumptiff
43DUMPTIFF_OBJS = tif_packbits.o dumptiff.o BooterBitmap.o
44SIG = $(SYMROOT)/sig
45SIG_OBJS = sig.o
46
47DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR) $(LOCALBIN)
48
49#BITMAPS = Panel.image Wait1.image Wait2.image Wait3.image
50BITMAPS = Panel.image
51FONTS = Default.font
52
53.SUFFIXES: .tiff
54.tiff.h:
55 $(DUMPTIFF) -o $(SYMROOT)/$* $<
56
57#all: $(DIRS_NEEDED) $(PROGRAMS) $(OUTFILES)
58all: $(DIRS_NEEDED) $(PROGRAMS) $(BITMAPS)
59
60#clean::
61# cd $(SYMROOT); rm -f $(OUTFILES)
62clean::
63 -(cd $(SYMROOT); rm -f $(PROGRAMS))
64
65install_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
72CURSOR_HFILES: $(DUMPTIFF)
73 $(DUMPTIFF) -c -o $(SYMROOT)/ns_wait
74$(FONT_HFILES): mkfont $(FONTFILES)
75 mkfont $(FONTFILES) -c $(SYMROOT)/$(@F)
76
77hdot.h hdot_bitmap.h: dot.tiff $(DUMPTIFF)
78 $(DUMPTIFF) -b 3 -o $(SYMROOT)/hdot dot.tiff
79
80sig: $(SIG_OBJS)
81 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(SIG_OBJS)
82
83dumptiff: $(DUMPTIFF_OBJS)
84 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(DUMPTIFF_OBJS) -lNeXT_s
85
86mkfont: mkfont.o
87 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) mkfont.o
88
89machOconv: machOconv.o
90 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o
91
92include ../MakeInc.dir
93
94#dependencies
95-include $(OBJROOT)/Makedep
96