PAR=-Wno-deprecated -O3 -fpermissive PAR2=-c -Wno-deprecated -O3 LIB_PATH=../lib COMMON_PATH=../common CMDLINE_FILE='"../tok.c/cmdline.h"' tok: tok.o cmdline.c common_tok.o common.o g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) \ tok.c cmdline.c common.o common_tok.o -o tok tok.o: tok.c cmdline.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) tok.c common_tok.o: cmdline.h common_tok.cc common_tok.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_tok.cc common.o: cmdline_common g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc cmdline.ggo: cmdline_tok.ggo $(COMMON_PATH)/cmdline_common.ggo cat cmdline_tok.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo cmdline.c cmdline.h: cmdline.ggo gengetopt -i cmdline.ggo --conf-parser copy: ifdef UTT_BIN_DIR cp tok ${UTT_BIN_DIR}/ endif clean: clean.cmdline rm *.o || true rm tok || true clean.cmdline: rm cmdline.* include $(COMMON_PATH)/common.mk include $(LIB_PATH)/lib.mk