1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd 2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule 4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir 5 6 7include $(MakeInc_cmd) 8include $(MakeInc_def) 9 10OBJS = externs.o main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o \ 11 mkswapconf.o openp.o searchp.o lexer.yy.o parser.o 12 13CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I. 14 15WARNFLAGS = -Wall 16 17LDFLAGS = -isysroot $(HOST_SDKROOT) 18 19config: $(OBJS) 20 $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^ 21 @echo HOST_LD $@ 22 $(_v)$(HOST_CODESIGN) -s - $@ 23 @echo HOST_CODESIGN $@ 24 25.c.o: 26 $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $< 27 @echo HOST_CC $@ 28 29parser.c: parser.y 30 $(_v)$(HOST_BISON) -y -d -d -o $@ $< 31 @echo HOST_BISON $@ 32 33lexer.yy.c: lexer.l 34 $(_v)$(HOST_FLEX) --header-file=lexer.yy.h -o $@ $< 35 @echo HOST_FLEX $@ 36 37main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o lexer.yy.c: parser.c 38 39do_build_setup: config 40 41include $(MakeInc_rule) 42include $(MakeInc_dir) 43