Revision 1086 trunk/src/nh99/GNUmakefile

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

  
1 10
ifeq ($(TERMINAL),dos)
2 11
bins: $(DISKDIR)\bin\tpl2cpp.exe
3 12

  
4
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp-winflex.c
13
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp.c
5 14
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
15

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

  
19
lex.yy.c: tpl2cpp.lex
20
	flex tpl2cpp.lex
6 21
else
7 22
bins: $(DISKDIR)/bin/tpl2cpp
8 23

  

Also available in: Unified diff