Statistics
| Revision:

root / trunk / src / df1b2-separable / GNUmakefile @ 885

History | View | Annotate | Download (510 Bytes)

1
include objects.lst
2

    
3
all: $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)) $(DISKDIR)/bin/tpl2rem
4

    
5
$(DISKDIR)/bin/tpl2rem: tpl2rem.c
6
	$(CC) $(CFLAGS) -o $@ $<
7

    
8
tpl2rem.c: lex.yy.c
9
	if [ "`cat $^ | wc -l`" -ne 0 ]; then sed -f sedflex $^ > $@; else rm -vf $@; fi
10
	if [ ! -f $@ ]; then cp -vf tpl2rem-unixflex.c $@; fi
11

    
12
lex.yy.c: tpl2rem.lex
13
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
14
	if [ ! -f $@ ]; then touch $@; fi
15

    
16
$(PREFIX_OBJ)%.obj:%.cpp
17
	$(CXX) -c $(CXXFLAGS) -o $@ $<