annotate window/Makefile.in @ 9:b6d6c0ffb423

Fixed some memory leaks
author thib
date Tue, 05 Aug 2008 13:24:20 +0000
parents 223b71206888
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 @SET_MAKE@
223b71206888 Initial import
thib
parents:
diff changeset
2 CC = @CC@
223b71206888 Initial import
thib
parents:
diff changeset
3 CXX = @CXX@
223b71206888 Initial import
thib
parents:
diff changeset
4 LD = @CXX@
223b71206888 Initial import
thib
parents:
diff changeset
5 AR = ar
223b71206888 Initial import
thib
parents:
diff changeset
6 RANLIB = @RANLIB@
223b71206888 Initial import
thib
parents:
diff changeset
7
223b71206888 Initial import
thib
parents:
diff changeset
8 CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @SDL_CFLAGS@ -pthread -O2
223b71206888 Initial import
thib
parents:
diff changeset
9 CXXFLAGS = $(CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
10 LDFLAGS = @LDFLAGS@ @FT2_LIBS@ @SDL_LIBS@ @LIBS@ -pthread
223b71206888 Initial import
thib
parents:
diff changeset
11
223b71206888 Initial import
thib
parents:
diff changeset
12 SRCS = render.cc \
223b71206888 Initial import
thib
parents:
diff changeset
13 event.cc \
223b71206888 Initial import
thib
parents:
diff changeset
14 system.cc \
223b71206888 Initial import
thib
parents:
diff changeset
15 picture.cc \
223b71206888 Initial import
thib
parents:
diff changeset
16 widget.cc \
223b71206888 Initial import
thib
parents:
diff changeset
17 button.cc \
223b71206888 Initial import
thib
parents:
diff changeset
18 menuitem.cc \
223b71206888 Initial import
thib
parents:
diff changeset
19 SDL_rotozoom.cc \
223b71206888 Initial import
thib
parents:
diff changeset
20 rect.cc
223b71206888 Initial import
thib
parents:
diff changeset
21
223b71206888 Initial import
thib
parents:
diff changeset
22 OBJS = ${SRCS:.cc=.o}
223b71206888 Initial import
thib
parents:
diff changeset
23
223b71206888 Initial import
thib
parents:
diff changeset
24 all: libwindow.a test
223b71206888 Initial import
thib
parents:
diff changeset
25
223b71206888 Initial import
thib
parents:
diff changeset
26 libwindow.a: ${OBJS}
223b71206888 Initial import
thib
parents:
diff changeset
27 rm -f libwindow.a
223b71206888 Initial import
thib
parents:
diff changeset
28 ${AR} clq libwindow.a ${OBJS}
223b71206888 Initial import
thib
parents:
diff changeset
29 $(RANLIB) libwindow.a
223b71206888 Initial import
thib
parents:
diff changeset
30
223b71206888 Initial import
thib
parents:
diff changeset
31 clean:
223b71206888 Initial import
thib
parents:
diff changeset
32 rm -f libwindow.a ${OBJS} *.bak *.core
223b71206888 Initial import
thib
parents:
diff changeset
33
223b71206888 Initial import
thib
parents:
diff changeset
34 .c.o:
223b71206888 Initial import
thib
parents:
diff changeset
35 $(CC) -c $(CFLAGS) -o $@ $<
223b71206888 Initial import
thib
parents:
diff changeset
36
223b71206888 Initial import
thib
parents:
diff changeset
37 .cc.o:
223b71206888 Initial import
thib
parents:
diff changeset
38 $(CXX) -c $(CFLAGS) -o $@ $<
223b71206888 Initial import
thib
parents:
diff changeset
39
223b71206888 Initial import
thib
parents:
diff changeset
40 test: $(OBJS) test.o
223b71206888 Initial import
thib
parents:
diff changeset
41 $(LD) -o test test.o $(OBJS) ../font/libfont.a ../system/libsystem.a $(LDFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
42
223b71206888 Initial import
thib
parents:
diff changeset
43 .png.bin:
223b71206888 Initial import
thib
parents:
diff changeset
44 pngtopnm $<.png | ppmtopgm | dd bs=1 skip=15 > $@
223b71206888 Initial import
thib
parents:
diff changeset
45 .bin.txt: runlength
223b71206888 Initial import
thib
parents:
diff changeset
46 ./runlength $< > $@