Statistics
| Revision:

root / trunk / src / nh99 / GNUmakefile @ 1079

History | View | Annotate | Download (583 Bytes)

1
ifneq ($(SHELL),sh.exe)
2
bins: $(DISKDIR)/bin/tpl2cpp
3

    
4
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
5
ifeq ("$(CC)","cc")
6
	$(CC) -o $@ $<
7
else
8
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
9
endif
10

    
11
tpl2cpp.c: lex.yy.c
12
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
13
	if [ ! -f $@ ]; then cp -vf tpl2cpp-unixflex.c $@; fi
14
lex.yy.c: tpl2cpp.lex
15
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
16
	if [ ! -f $@ ]; then touch $@; fi
17
else
18
bins: $(DISKDIR)\bin\tpl2cpp.exe
19

    
20
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp-winflex.c
21
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
22
endif