Statistics
| Revision:

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

History | View | Annotate | Download (770 Bytes)

1
ifeq ($(OS),Windows_NT)
2
  ifeq ("$(TERM)","xterm")
3
    TERMINAL=cygwin
4
  else
5
    TERMINAL=dos
6
    PATH:=$(PATH);..\..\utilities;..\..\utilities\mingw\bin
7
  endif
8
endif
9

    
10
ifeq ($(TERMINAL),dos)
11
bins: $(DISKDIR)\bin\tpl2rem.exe
12

    
13
$(DISKDIR)\bin\tpl2rem.exe: tpl2rem.c
14
	$(CC) $(CFLAGS) -o $@ $<
15

    
16
tpl2rem.c: lex.yy.c
17
	sed -f sedflex lex.yy.c > $@
18

    
19
lex.yy.c: tpl2rem.lex
20
	flex -w tpl2rem.lex
21

    
22
else
23
bins: $(DISKDIR)/bin/tpl2rem
24

    
25
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
26
	$(CC) $(CFLAGS) -o $@ $<
27

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

    
32
lex.yy.c: tpl2rem.lex
33
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
34
	if [ ! -f $@ ]; then touch $@; fi
35
endif