Revision 1393 trunk/src/nh99/GNUmakefile

GNUmakefile (revision 1393)
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
1
ifeq ($(SHELL),sh.exe)
2
bins: $(DIST)\bin\tpl2cpp.exe
14 3

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

  
18
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp.c
4
$(DIST)\bin\tpl2cpp.exe: tpl2cpp.c
19 5
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
20 6

  
21 7
tpl2cpp.c: lex.yy.c
......
24 10
lex.yy.c: tpl2cpp.lex
25 11
	flex tpl2cpp.lex
26 12
else
27
bins: $(DISKDIR)/bin/tpl2cpp
13
bins: $(DIST)/bin/tpl2cpp
28 14

  
29
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
15
$(DIST)/bin/tpl2cpp: tpl2cpp.c
30 16
ifeq ("$(CC)","cc")
31 17
	$(CC) -o $@ $<
32 18
else

Also available in: Unified diff