Statistics
| Revision:

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

History | View | Annotate | Download (859 Bytes)

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

    
15
ifeq ($(TERMINAL),dos)
16
bins: $(DISKDIR)\bin\tpl2rem.exe
17

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

    
21
tpl2rem.c: lex.yy.c
22
	sed -f sedflex lex.yy.c > $@
23

    
24
lex.yy.c: tpl2rem.lex
25
	flex -w tpl2rem.lex
26

    
27
else
28
bins: $(DISKDIR)/bin/tpl2rem
29

    
30
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
31
	$(CC) $(CFLAGS) -o $@ $<
32

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

    
37
lex.yy.c: tpl2rem.lex
38
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
39
	if [ ! -f $@ ]; then touch $@; fi
40
endif