Revision 936 trunk/src/nh99/GNUmakefile

GNUmakefile (revision 936)
8 8

  
9 9
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJECTS)))
10 10

  
11
ifneq ($(SHELL),sh.exe)
11 12
bins: $(DISKDIR)/bin/tpl2cpp
12 13

  
13 14
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
......
23 24
lex.yy.c: tpl2cpp.lex
24 25
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
25 26
	if [ ! -f $@ ]; then touch $@; fi
27
else
28
bins: $(DISKDIR)\bin\tpl2cpp.exe
26 29

  
30
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp-winflex.c
31
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
32
endif
33

  
27 34
$(PREFIX_OBJ)banner.obj: banner.cpp
28 35
	$(CXX) -c $(CXXFLAGS) -DADMB_VERSION=$(shell cat ../../VERSION) -DADMB_REVISION=$(shell test -e ../../REVISION && cat ../../REVISION) -o $@ $^
29 36

  

Also available in: Unified diff