Statistics
| Revision:

root / trunk / src / df1b2-separable / GNUmakefile @ 1085

History | View | Annotate | Download (512 Bytes)

1 1085 johnoel
ifeq ($(TERMINAL),dos)
2
bins: $(DISKDIR)\bin\tpl2rem.exe
3
4
$(DISKDIR)\bin\tpl2rem.exe: tpl2rem-winflex.c
5
	$(CC) $(CFLAGS) -o $@ $<
6
else
7 897 johnoel
bins: $(DISKDIR)/bin/tpl2rem
8
9 30 johnoel
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
10 378 johnoel
	$(CC) $(CFLAGS) -o $@ $<
11 1 johnoel
12 851 johnoel
tpl2rem.c: lex.yy.c
13
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
14
	if [ ! -f $@ ]; then cp -vf tpl2rem-unixflex.c $@; fi
15 1 johnoel
16 851 johnoel
lex.yy.c: tpl2rem.lex
17
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
18
	if [ ! -f $@ ]; then touch $@; fi
19 936 johnoel
endif