Statistics
| Revision:

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

History | View | Annotate | Download (513 Bytes)

1
ifneq ($(SHELL),sh.exe)
2
bins: $(DISKDIR)/bin/tpl2rem
3

    
4
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
5
	$(CC) $(CFLAGS) -o $@ $<
6

    
7
tpl2rem.c: lex.yy.c
8
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
9
	if [ ! -f $@ ]; then cp -vf tpl2rem-unixflex.c $@; fi
10

    
11
lex.yy.c: tpl2rem.lex
12
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
13
	if [ ! -f $@ ]; then touch $@; fi
14
else
15
bins: $(DISKDIR)\bin\tpl2rem.exe
16

    
17
$(DISKDIR)\bin\tpl2rem.exe: tpl2rem-winflex.c
18
	$(CC) $(CFLAGS) -o $@ $<
19
endif