Subversion Repositories wimsdev

Rev

Rev 3844 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3844 Rev 6776
Line 1... Line 1...
1
# @configure_input@
1
# @configure_input@
2
 
2
 
3
wims_home=../../..
3
wims_home=../../..
4
cc=@CC@
4
cc=@CC@
5
cflags=@CFLAGS@ -Wall @STATIC_LIB@
5
cflags=@CFLAGS@ -Wall @STATIC_LIB@
-
 
6
LDFLAGS=@LDFLAGS@
-
 
7
CPPFLAGS=@CPPFLAGS@
6
defines=@DEFINES@
8
defines=@DEFINES@
7
lopt=-lm
9
lopt=-lm
8
 
10
 
9
C=edgelist.c geometry.c heap.c main.c memory.c output.c voronoi.c 
11
C=edgelist.c geometry.c heap.c main.c memory.c output.c voronoi.c 
10
O=edgelist.o geometry.o heap.o main.o memory.o output.o voronoi.o
12
O=edgelist.o geometry.o heap.o main.o memory.o output.o voronoi.o
Line 12... Line 14...
12
all: voronoi
14
all: voronoi
13
 
15
 
14
tt: voronoi t
16
tt: voronoi t
15
	voronoi -t <t >tt
17
	voronoi -t <t >tt
16
voronoi: $O
18
voronoi: $O
17
	$(cc) $(cflags) -o voronoi $O -lm
19
	$(cc) $(cflags) $(LDFLAGS) -o voronoi $O -lm
18
 
20
 
19
%.o: %.c
21
%.o: %.c
20
	$(cc) $(cflags) -o $@ -c $<
22
	$(cc) $(cflags) $(CPPFLAGS) -o $@ -c $<
21
 
23
 
22
$O:vdefs.h
24
$O:vdefs.h
23
 
25
 
24
clean:
26
clean:
25
	rm -f *.o voronoi
27
	rm -f *.o voronoi