Migration to new build system.

* kot moved and checked
This commit is contained in:
Mateusz Hromada 2009-06-09 13:38:30 +02:00
parent e4cec26b9f
commit 3a2ae91d94
3 changed files with 23 additions and 17 deletions

View File

@ -1,9 +0,0 @@
kot:
copy:
ifdef UTT_BIN_DIR
cp kot ${UTT_BIN_DIR}
endif
clean:

View File

@ -45,29 +45,44 @@ ALL_FFLAGS = -t \$(FFLAGS)
VPATH = ./src
PROGRAMS = tok sen fla gph
PROGRAMS = tok sen fla gph kot
TOK_OBJ_FILES = tok.o tok_cmdline.o
TOK_FLEX_FILES = tok.l
TOK_GGO_FILES = tok_cmdline.ggo
tok: \$(TOK_OBJ_FILES)
tok.o: tok.c
tok.o: tok_cmdline.h
tok.c: tok.l
tok_cmdline.o: tok_cmdline.c tok_cmdline.h
tok_cmdline.c: tok_cmdline.ggo
tok_cmdline.h: tok_cmdline.ggo
SEN_OBJ_FILES = sen.o
SEN_FLEX_FILES = sen.l
sen: \$(SEN_OBJ_FILES)
sen.o: sen.c
sen.c: sen.l
FLA_OBJ_FILES = fla.o
fla: \$(FLA_OBJ_FILES)
fla.o: fla.c
GPH_PERL_FILES = gph.pl
gph: \$(GPH_PERL_FILES)
KOT_PERL_FILES = kot.pl
kot: \$(KOT_PERL_FILES)
CONFIG_FILES = src/config.h Makefile
.SUFFIXES:
.SUFFIXES: .l .y .h .c .o
.SUFFIXES: .l .y .h .c .pl .o
.INTERMEDIATE: \$(patsubst %.l,%.c,\$(TOK_FLEX_FILES))
.INTERMEDIATE: \$(patsubst %.ggo,%.c,\$(TOK_GGO_FILES))
.INTERMEDIATE: \$(patsubst %.ggo,%.h,\$(TOK_GGO_FILES))
.INTERMEDIATE: \$(patsubst %.l,%.c,\$(SEN_FLEX_FILES))
#.INTERMEDIATE: \$(patsubst %.l,%.c,\$(TOK_FLEX_FILES))
#.INTERMEDIATE: \$(patsubst %.ggo,%.c,\$(TOK_GGO_FILES))
#.INTERMEDIATE: \$(patsubst %.ggo,%.h,\$(TOK_GGO_FILES))
#.INTERMEDIATE: \$(patsubst %.l,%.c,\$(SEN_FLEX_FILES))
.PHONY: all
all: \$(PROGRAMS)
@ -90,7 +105,9 @@ clean:
\$(RM) \$(patsubst %.l,%.c,\$(TOK_FLEX_FILES))
\$(RM) \$(patsubst %.ggo,%.c,\$(TOK_GGO_FILES))
\$(RM) \$(patsubst %.ggo,%.h,\$(TOK_GGO_FILES))
\$(RM) \$(SEN_OBJ_FILES)
\$(RM) \$(patsubst %.l,%.c,\$(SEN_FLEX_FILES))
\$(RM) \$(FLA_OBJ_FILES)
.PHONY: distclean
distclean: clean
@ -123,7 +140,5 @@ uninstall:
\$(CP) \$< \$@
\$(CHMOD) a+x \$@
tok: \$(TOK_OBJ_FILES)
EOF

0
app/src/kot/kot → src/kot.pl Executable file → Normal file
View File