diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-09 14:24:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-09 14:24:08 +0200 |
commit | aa36ba1bfedbec0a5a8682dd862697eb4c090a13 (patch) | |
tree | 2e178bb008ea0076185a841cc35cb6ceffe7a4fa /config/Makefile | |
parent | 1c47490f586071528b387edc46e531c88bd77dc7 (diff) | |
parent | cda64efca568ec61c064b44f494f58f7a08bd4e7 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'config/Makefile')
-rw-r--r-- | config/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/config/Makefile b/config/Makefile index 1f6debc8f..ae7a293dd 100644 --- a/config/Makefile +++ b/config/Makefile @@ -36,9 +36,9 @@ endif endif CONF_SRC =conf.c -MCONF_SRC =mconf.c checklist.c menubox.c textbox.c yesno.c inputbox.c util.c msgbox.c -SHARED_SRC=zconf.tab.c glob.c -SHARED_DEPS:=lkc.h lkc_proto.h lkc_defs.h expr.h zconf.tab.h glob.h +MCONF_SRC =mconf.c $(wildcard lxdialog/*.c) +SHARED_SRC=zconf.tab.c +SHARED_DEPS:=lkc.h lkc_proto.h lkc_defs.h expr.h zconf.tab.h CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC)) MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC)) SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC)) @@ -72,13 +72,16 @@ ifdef LKC_GENPARSER %.tab.c %.tab.h: %.y bison -t -d -v -b $* -p $(notdir $*) $< +%.hash.c: %.gperf + gperf < $< > $@ + lex.%.c: %.l flex -P$(notdir $*) -o$@ $< lex.zconf.o: lex.zconf.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ -zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS) +zconf.tab.o: zconf.tab.c zconf.hash.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ else @@ -89,7 +92,10 @@ lex.zconf.o: lex.zconf.c $(SHARED_DEPS) lex.zconf.c: lex.zconf.c_shipped $(CP) lex.zconf.c_shipped lex.zconf.c -zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS) +zconf.hash.c: zconf.hash.c_shipped + $(CP) zconf.hash.c_shipped zconf.hash.c + +zconf.tab.o: zconf.tab.c zconf.hash.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ zconf.tab.c: zconf.tab.c_shipped |