Statistics
| Revision:

root / trunk / src / nh99 / GNUmakefile @ 1085

History | View | Annotate | Download (582 Bytes)

1 1085 johnoel
ifeq ($(TERMINAL),dos)
2
bins: $(DISKDIR)\bin\tpl2cpp.exe
3
4
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp-winflex.c
5
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
6
else
7 897 johnoel
bins: $(DISKDIR)/bin/tpl2cpp
8 1 johnoel
9 30 johnoel
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
10 73 johnoel
ifeq ("$(CC)","cc")
11
	$(CC) -o $@ $<
12
else
13 378 johnoel
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
14 73 johnoel
endif
15 1 johnoel
16 851 johnoel
tpl2cpp.c: lex.yy.c
17
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
18 890 johnoel
	if [ ! -f $@ ]; then cp -vf tpl2cpp-unixflex.c $@; fi
19 851 johnoel
lex.yy.c: tpl2cpp.lex
20
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
21
	if [ ! -f $@ ]; then touch $@; fi
22 936 johnoel
endif