Last change
on this file was
cfdf333,
checked in by Tomasz Obrebski <to@…>, 13 years ago
|
Naprawy dotyczace oblugi plikow konfiguracyjnych.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | include ../../config.mak |
---|
2 | |
---|
3 | LDFLAGS += -static |
---|
4 | CXXFLAGS += -O2 -fpermissive |
---|
5 | |
---|
6 | LIB_PATH=../lib |
---|
7 | COMMON_PATH=../common |
---|
8 | CMDLINE_FILE='"../lem/cmdline.h"' |
---|
9 | |
---|
10 | |
---|
11 | lem: main.cc lem.o $(LIB_PATH)/auttools.o $(LIB_PATH)/word.o \ |
---|
12 | cmdline.c common_lem.o common.o symtab.o |
---|
13 | g++ $(CXXFLAGS) $(LDFLAGS) -D _CMDLINE_FILE=$(CMDLINE_FILE) \ |
---|
14 | main.cc lem.o $(LIB_PATH)/auttools.o \ |
---|
15 | $(LIB_PATH)/word.o cmdline.c common.o common_lem.o \ |
---|
16 | symtab.o -o lem |
---|
17 | |
---|
18 | lem.o: lem.h lem.cc |
---|
19 | g++ $(CXXFLAGS) -c -D _CMDLINE_FILE=$(CMDLINE_FILE) lem.cc |
---|
20 | |
---|
21 | common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
22 | $(COMMON_PATH)/common.h |
---|
23 | g++ $(CXXFLAGS) -c -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc |
---|
24 | |
---|
25 | common_lem.o: cmdline.h common_lem.h common_lem.cc |
---|
26 | g++ $(CXXFLAGS) -c -D _CMDLINE_FILE=$(CMDLINE_FILE) common_lem.cc |
---|
27 | |
---|
28 | cmdline.c cmdline.h: cmdline.ggo |
---|
29 | gengetopt -i cmdline.ggo --conf-parser |
---|
30 | |
---|
31 | cmdline.ggo: cmdline_lem.ggo ../common/cmdline_common.ggo |
---|
32 | cat cmdline_lem.ggo ../common/cmdline_common.ggo > cmdline.ggo |
---|
33 | |
---|
34 | symtab.o: $(LIB_PATH)/symtab.h $(LIB_PATH)/symtab.cc |
---|
35 | g++ $(CXXFLAGS) -c $(LIB_PATH)/symtab.cc |
---|
36 | |
---|
37 | clean: clean.cmdline |
---|
38 | rm *.o || true |
---|
39 | rm lem || true |
---|
40 | |
---|
41 | clean.cmdline: |
---|
42 | rm cmdline.* || true |
---|
43 | |
---|
44 | .PHONY: install |
---|
45 | install: |
---|
46 | ifdef BIN_DIR |
---|
47 | install -m 0755 lem $(BIN_DIR) |
---|
48 | endif |
---|
49 | |
---|
50 | .PHONY: uninstall |
---|
51 | uninstall: |
---|
52 | ifdef BIN_DIR |
---|
53 | rm $(BIN_DIR)/lem |
---|
54 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.