Last change
on this file was
243d027,
checked in by Tomasz Obrebski <to@…>, 12 years ago
|
tok accepts options and prints help message now
|
-
Property mode set to
100644
|
File size:
649 bytes
|
Line | |
---|
1 | include ../../config.mak |
---|
2 | |
---|
3 | ifeq ($(BUILD_STATIC), yes) |
---|
4 | LDFLAGS += -static |
---|
5 | endif |
---|
6 | |
---|
7 | LDFLAGS += |
---|
8 | CFLAGS += -O2 |
---|
9 | |
---|
10 | tok: lex.yy.c |
---|
11 | $(CC) $(CFLAGS) -o tok lex.yy.c tok_cmdline.c -lfl $(LDFLAGS) |
---|
12 | |
---|
13 | lex.yy.c: tok_cmdline.h tok_cmdline.c |
---|
14 | $(FLEX) tok.l |
---|
15 | |
---|
16 | tok_cmdline.h tok_cmdline.c: tok_cmdline.ggo |
---|
17 | $(GENGETOPT) -i tok_cmdline.ggo --conf-parser --file=tok_cmdline |
---|
18 | |
---|
19 | .PHONY: install |
---|
20 | install: |
---|
21 | ifdef BIN_DIR |
---|
22 | install -m 0755 tok $(BIN_DIR) |
---|
23 | endif |
---|
24 | |
---|
25 | .PHONY: uninstall |
---|
26 | uninstall: |
---|
27 | ifdef BIN_DIR |
---|
28 | rm $(BIN_DIR)/tok |
---|
29 | endif |
---|
30 | |
---|
31 | clean: clean.cmdline clean.flex |
---|
32 | rm tok || true |
---|
33 | |
---|
34 | clean.cmdline: |
---|
35 | rm tok_cmdline.c || true |
---|
36 | rm tok_cmdline.h || true |
---|
37 | |
---|
38 | clean.flex: |
---|
39 | rm lex.yy.c || true |
---|
Note: See
TracBrowser
for help on using the repository browser.