]> git.saurik.com Git - apple/boot.git/blob - i386/util/Makefile
2dfda041e84187b7c7b1749ec3231ef32bce1860
[apple/boot.git] / i386 / 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 LOCALBIN = $(DSTROOT)/usr/local/bin
14
15 OPTIM = -Os -Oz
16 CFLAGS = $(RC_CFLAGS) $(OPTIM) -Wmost -Werror -g
17 LDFLAGS =
18 CFILES = machOconv.c
19 ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)
20
21 PROGRAMS = machOconv
22
23 OUTFILES = $(PROGRAMS)
24
25 DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR)
26
27 all: $(DIRS_NEEDED) $(PROGRAMS)
28
29 clean::
30 -(cd $(SYMROOT); rm -f $(PROGRAMS))
31
32 machOconv: machOconv.o
33 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o
34
35 include ../MakeInc.dir
36
37 #dependencies
38 -include $(OBJROOT)/Makedep
39