Changeset 12743b9 for auto/output/Makefile
- Timestamp:
- 06/07/09 01:25:24 (15 years ago)
- Branches:
- master
- Children:
- 1e551bd
- Parents:
- 44f59b8
- git-author:
- Mateusz Hromada <ruanda@…> (06/07/09 01:25:24)
- git-committer:
- Mateusz Hromada <ruanda@…> (06/07/09 01:25:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
auto/output/Makefile
r44f59b8 r12743b9 3 3 cat << EOF > Makefile 4 4 # Default target 5 .DEFAULT :all5 .DEFAULT_GOAL = all 6 6 7 7 SHELL = $SHELL … … 44 44 45 45 PROGRAMS = tok 46 46 47 TOK_OBJ_FILES = tok.o tok_cmdline.o 47 48 TOK_FLEX_FILES = tok.l 49 TOK_GGO_FILES = tok_cmdline.ggo 50 tok.o: tok_cmdline.h 51 48 52 CONFIG_FILES = src/config.h Makefile 49 53 … … 51 55 .SUFFIXES: .l .y .h .c .o 52 56 57 .INTERMEDIATE: \$(patsubst %.l,%.c,\$(TOK_FLEX_FILES)) 58 .INTERMEDIATE: \$(patsubst %.ggo,%.c,\$(TOK_GGO_FILES)) 59 .INTERMEDIATE: \$(patsubst %.ggo,%.h,\$(TOK_GGO_FILES)) 60 53 61 .PHONY: all 54 62 all: \$(PROGRAMS) 55 #make -C app compile 63 56 64 57 65 .PHONY: help … … 70 78 \$(RM) \$(TOK_OBJ_FILES) 71 79 \$(RM) \$(patsubst %.l,%.c,\$(TOK_FLEX_FILES)) 72 #make -C app clean 80 \$(RM) \$(patsubst %.ggo,%.c,\$(TOK_GGO_FILES)) 81 \$(RM) \$(patsubst %.ggo,%.h,\$(TOK_GGO_FILES)) 73 82 74 83 .PHONY: distclean … … 87 96 \$(CC) -c \$< -o \$@ \$(ALL_CFLAGS) 88 97 89 %. o: %.l98 %.c: %.l 90 99 \$(FLEX) -t \$< > \$@ 100 101 %.c: %.ggo 102 gengetopt --input $< --file-name \$(patsubst %.c,%,\$@) --conf-parser 103 104 %.h: %.ggo 105 gengetopt --input $< --file-name \$(patsubst %.h,%,\$@) --conf-parser 91 106 92 107 %: %.o
Note: See TracChangeset
for help on using the changeset viewer.