1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- TOPDIR=../../
- include $(TOPDIR)Rules.mak
- all: conf mconf
- NATIVE_CFLAGS=-Wall -g -O0
- CONF_SRC =conf.c zconf.tab.c
- MCONF_SRC =mconf.c zconf.tab.c
- CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC))
- MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC))
- conf: $(CONF_OBJS)
- $(NATIVE_CC) $(NATIVE_CFLAGS) $(NATIVE_LDFLAGS) $^ -o $@
- mconf: $(MCONF_OBJS)
- $(NATIVE_CC) $(NATIVE_CFLAGS) $(NATIVE_LDFLAGS) $^ -o $@
- lkc_deps:=lkc.h lkc_proto.h lkc_defs.h expr.h zconf.tab.h
- conf.o: conf.c $(lkc_deps)
- mconf.o: mconf.c $(lkc_deps)
- zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps)
- lex.zconf.o: lex.zconf.c $(lkc_deps)
- %.o : %.c
- $(NATIVE_CC) $(NATIVE_CFLAGS) -I. -c $< -o $@
- lkc_defs.h: lkc_proto.h
- sed < $< > $@ 's/P(\([^,]*\),.*/
- lex.zconf.c: lex.zconf.c_shipped
- cp lex.zconf.c_shipped lex.zconf.c
- zconf.tab.c: zconf.tab.c_shipped
- cp zconf.tab.c_shipped zconf.tab.c
- zconf.tab.h: zconf.tab.h_shipped
- cp zconf.tab.h_shipped zconf.tab.h
- clean:
- rm -f *.o *~ core $(TARGETS) $(MCONF_OBJS) $(CONF_OBJS) \
- conf mconf zconf.tab.c zconf.tab.h lex.zconf.c lkc_defs.h
|