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