export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
-
include $(MakeInc_cmd)
include $(MakeInc_def)
-OBJS = externs.o main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o \
- mkswapconf.o openp.o searchp.o lexer.yy.o parser.o
+OBJS = externs.o main.o mkheaders.o mkioconf.o mkmakefile.o \
+ openp.o searchp.o lexer.yy.o parser.o
-CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I.
+CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
+CFLAGS += -DYY_NO_INPUT
WARNFLAGS = -Wall
-LDFLAGS = -isysroot $(HOST_SDKROOT)
+LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
config: $(OBJS)
+ $(call makelog,$(ColorH)HOST_LD$(Color0) $(ColorF)$@$(Color0))
$(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
- @echo HOST_LD $@
- $(_v)$(HOST_CODESIGN) -s - $@
- @echo HOST_CODESIGN $@
+ $(call makelog,$(ColorH)HOST_CODESIGN$(Color0) $(ColorF)$@$(Color0))
+ $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
-.c.o:
+%.o: %.c
+ $(call makelog,$(ColorH)HOST_CC$(Color0) $(ColorF)$@$(Color0))
$(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
- @echo HOST_CC $@
parser.c: parser.y
+ $(call makelog,$(ColorH)HOST_BISON$(Color0) $(ColorF)$@$(Color0))
$(_v)$(HOST_BISON) -y -d -d -o $@ $<
- @echo HOST_BISON $@
lexer.yy.c: lexer.l
- $(_v)$(HOST_FLEX) --header-file=lexer.yy.h -o $@ $<
- @echo HOST_FLEX $@
+ $(call makelog,$(ColorH)HOST_FLEX$(Color0) $(ColorF)$@$(Color0))
+ $(_v)env M4=$(HOST_GM4) $(HOST_FLEX) --header-file=lexer.yy.h -o $@ $<
-main.o mkglue.o mkheaders.o mkioconf.o mkmakefile.o lexer.yy.c: parser.c
+main.o mkheaders.o mkioconf.o mkmakefile.o lexer.yy.c: parser.c
-do_build_setup: config
+do_build_setup:: config
include $(MakeInc_rule)
include $(MakeInc_dir)