Statistics
| Revision:

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

History | View | Annotate | Download (525 Bytes)

1
include objects.lst
2

    
3
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)))
4

    
5
bins: $(DISKDIR)/bin/tpl2rem
6

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

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

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

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