Subversion Repositories wimsdev

Rev

Rev 6776 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
# @configure_input@
2
 
3
cc=@CC@
4
cflags=@CFLAGS@ -Wall
6776 georgesk 5
LDFLAGS=@LDFLAGS@
6
CPPFLAGS=@CPPFLAGS@
7
 
7615 bpr 8
LIB=-lgd -lm
10 reyssat 9
O=drawode.o drawode_func.o
10
 
11
all: drawode drawode_g
12
 
13
%.o: %.c drawode.h
6776 georgesk 14
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) -ffast-math -fomit-frame-pointer -o $@ -c $<
10 reyssat 15
 
16
drawode: $(O)
6776 georgesk 17
	$(cc) $(cflags) $(LDFLAGS) -ffast-math -fomit-frame-pointer -o $@ $(O) $(LIB)
10 reyssat 18
 
19
drawode_g: drawode.c drawode_func.c drawode.h
6776 georgesk 20
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) -DDEBUG -o $@ drawode.c drawode_func.c $(LIB)
10 reyssat 21
 
22
clean:
23
	-rm -f drawode drawode_g *.o