Statistics
| Revision:

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

History | View | Annotate | Download (609 Bytes)

1
ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
2
bins: $(DIST)\bin\tpl2rem.exe
3

    
4
$(DIST)\bin\tpl2rem.exe: tpl2rem.c
5
	$(CC) $(CFLAGS) -o $@ $<
6

    
7
tpl2rem.c: lex.yy.c
8
	sed -f sedflex lex.yy.c > $@
9

    
10
lex.yy.c: tpl2rem.lex
11
	flex -w tpl2rem.lex
12

    
13
else
14
bins: $(DIST)/bin/tpl2rem
15

    
16
$(DIST)/bin/tpl2rem: tpl2rem.c
17
	$(CC) $(CFLAGS) -o $@ $<
18

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

    
23
lex.yy.c: tpl2rem.lex
24
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
25
	if [ ! -f $@ ]; then touch $@; fi
26
endif