Statistics
| Revision:

root / trunk / src / nh99 / GNUmakefile @ 1085

History | View | Annotate | Download (582 Bytes)

1
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
bins: $(DISKDIR)/bin/tpl2cpp
8

    
9
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
10
ifeq ("$(CC)","cc")
11
	$(CC) -o $@ $<
12
else
13
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
14
endif
15

    
16
tpl2cpp.c: lex.yy.c
17
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
18
	if [ ! -f $@ ]; then cp -vf tpl2cpp-unixflex.c $@; fi
19
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
endif