PAR=-Wno-deprecated -O3 PAR2=-c -Wno-deprecated -O3 LIB_PATH=../lib CMDLINE_FILE='"../tok.c/cmdline.h"' tok: tok.o cmdline.c common_tok.o common.o g++ $(PAR) tok.c cmdline.c common.o common_tok.o -o tok tok.o: tok.c cmdline.h g++ $(PAR2) tok.c common_tok.o: cmdline.h common_tok.cc common_tok.h g++ $(PAR2) common_tok.cc common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc\ $(COMMON_PATH)/common.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc cmdline.ggo: cmdline_tok.ggo ../common/cmdline_common.ggo cat cmdline_tok.ggo ../common/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 clean.cmdline: rm cmdline.*