Changeset e7de6cc for src/dgp/Makefile
- Timestamp:
- 02/21/12 20:02:51 (13 years ago)
- Branches:
- master
- Children:
- b242df2
- Parents:
- 354ba3d
- git-author:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- git-committer:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/Makefile
r5f4d9c3 re7de6cc 1 1 2 include ../../config.mak 3 2 4 3 5 SHELL = /bin/sh … … 6 8 CMDLINE_FILE='"../dgp/cmdline.h"' 7 9 10 8 11 #vpath %.o . 9 12 10 ifeq ($(BUILD_STATIC), yes) 11 LDFLAGS += -static 12 endif 13 CXXFLAGS = -g -static 13 14 14 CXXFLAGS += -O2 15 16 sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp0.cc cmdline.cc \ 15 sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp1.cc cmdline.cc \ 17 16 $(COMMON_PATH)/common.cc global.cc 18 17 … … 23 22 24 23 ${bin}: ${objs} 25 $ (CXX) $(CXXFLAGS) -D _CMDLINE_FILE=$(CMDLINE_FILE) -o $@ ${objs} $(LDFLAGS)24 ${CXX} ${CXXFLAGS} -D _CMDLINE_FILE=$(CMDLINE_FILE) -o $@ ${objs} 26 25 27 26 include $(sources:.cc=.d) 28 27 29 28 %.o: %.cc 30 $ (CXX)-D _CMDLINE_FILE=$(CMDLINE_FILE) -c ${CXXFLAGS} -o $@ $<29 ${CXX} -D _CMDLINE_FILE=$(CMDLINE_FILE) -c ${CXXFLAGS} -o $@ $< 31 30 32 31 %.d: %.cc … … 35 34 rm -f $@.$$$$ 36 35 37 # stare: 38 # cmdline.cc cmdline.h : cmdline.ggo 39 # gengetopt --c-extension=cc -i cmdline.ggo 40 # nowe 36 41 37 cmdline.cc cmdline.h: cmdline.ggo 42 $(GENGETOPT)-i cmdline.ggo --c-extension=cc --conf-parser38 gengetopt -i cmdline.ggo --c-extension=cc --conf-parser 43 39 44 40 cmdline.ggo: cmdline_dgp.ggo ../common/cmdline_common.ggo 45 41 cat cmdline_dgp.ggo ../common/cmdline_common.ggo > cmdline.ggo 46 # endnowe47 42 48 43 44 45 .PHONY: clean 49 46 clean: 50 rm ${bin} ${objs} cmdline.cc cmdline.h51 rm - rf *.d47 rm -f ${bin} ${objs} cmdline.* 48 rm -f *.d 52 49 50 .PHONY: prof 53 51 prof: dgp 54 52 gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof 53 55 54 56 55 .PHONY: install … … 58 57 ifdef BIN_DIR 59 58 install -m 0755 dgp $(BIN_DIR) 60 install -m 0755 dgc $(BIN_DIR)61 install -m 0755 canonize $(BIN_DIR)62 install -m 0755 tre $(BIN_DIR)63 59 endif 64 60 … … 67 63 ifdef BIN_DIR 68 64 rm $(BIN_DIR)/dgp 69 rm $(BIN_DIR)/dgc70 rm $(BIN_DIR)/canonize71 rm $(BIN_DIR)/tre72 65 endif
Note: See TracChangeset
for help on using the changeset viewer.