Last change
on this file since c21bdd6 was
5f4d9c3,
checked in by Maciej Prill <mprill@…>, 13 years ago
|
Rewritten the build system, added lem UTF-8 version.
|
-
Property mode set to
100644
|
File size:
619 bytes
|
Rev | Line | |
---|
[5f4d9c3] | 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) -lfl -o tok lex.yy.c $(LDFLAGS) |
---|
| 12 | |
---|
| 13 | lex.yy.c: tok_cmdline.h tok_cmdline.c |
---|
| 14 | $(FLEX) tok.l |
---|
| 15 | |
---|
| 16 | tok_cmdline.h tok_cmdline.c: |
---|
| 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.