Statistics
| Revision:

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

History | View | Annotate | Download (667 Bytes)

1
include objects.lst
2

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

    
5
ifneq ($(SHELL),sh.exe)
6
bins: $(DISKDIR)/bin/tpl2rem
7

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

    
11
tpl2rem.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 tpl2rem-unixflex.c $@; fi
14

    
15
lex.yy.c: tpl2rem.lex
16
	if [ `command -v flex` ]; then flex -v -w $^; else rm -vf $@; fi
17
	if [ ! -f $@ ]; then touch $@; fi
18
else
19
bins: $(DISKDIR)\bin\tpl2rem.exe
20

    
21
$(DISKDIR)\bin\tpl2rem.exe: tpl2rem-winflex.c
22
	$(CC) $(CFLAGS) -o $@ $<
23

    
24
endif
25

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