Statistics
| Revision:

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

History | View | Annotate | Download (512 Bytes)

1
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
bins: $(DISKDIR)/bin/tpl2rem
8

    
9
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
10
	$(CC) $(CFLAGS) -o $@ $<
11

    
12
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

    
16
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
endif