4 CFLAGS
= -g
-O0
-Wall
-I..
/ogg
/ogg
/include
6 # use 16 bit signed integers as wavelet coefficients
7 CFLAGS
+= -DTYPE
=int16_t
9 # we'll actually use TYPE_BITS bits of type (e.g. 9 magnitude + 1 sign)
10 CFLAGS
+= -DTYPE_BITS
=10
12 # use the rle entropy coder
15 # simple malloc debugging
16 #CFLAGS+= -DDBG_MEMLEAKS
18 # dump a lot debug images
21 # dump ogg packet infos
27 LFLAGS
= -g
-lefence
-logg
-L..
/ogg
/ogg
/src
/.libs
29 OBJS
= mem.o pnm.o wavelet.o wavelet_xform.o wavelet_coeff.o \
32 TEST_TARGETS
= _test_bitcoder _test_rle
35 TEST_OBJS
= $(TEST_TARGETS
:=.o
)
36 TEST_SRCS
= $(TEST_OBJS
:.o
=.c
)
39 all: tarkin_enc tarkin_dec
41 tarkin_enc
: $(OBJS
) tarkin_enc.o
42 $(CC
) $(LFLAGS
) $(OBJS
) tarkin_enc.o
-o
$@
44 tarkin_dec
: $(OBJS
) tarkin_dec.o
45 $(CC
) $(LFLAGS
) $(OBJS
) tarkin_dec.o
-o
$@
47 tarkin_sdl_player
: $(OBJS
) tarkin_sdl_player.o
48 $(CC
) $(LFLAGS
) `sdl-config --libs` $(OBJS
) tarkin_sdl_player.o
-o
$@
50 tarkin_sdl_player.o
: tarkin_sdl_player.c
51 $(CC
) $(CFLAGS
) `sdl-config --cflags` -c
$< -o
$@
57 $(RM
) $(OBJS
) $(TARGET
) gmon.out core .depend .depend.bak rle.histogram
58 $(RM
) $(TEST_TARGETS
) $(TEST_OBJS
)
59 $(RM
) tarkin_enc tarkin_dec tarkin_enc.o tarkin_dec.o
60 $(RM
) tarkin_sdl_player tarkin_sdl_player.o
64 test: .depend
$(TEST_TARGETS
)
68 .depend
: $(SRCS
) $(TEST_SRCS
)
71 sh tools
/makedepend.sh
-f.depend
-- $(CFLAGS
) -- $(SRCS
) $(TEST_SRCS
) tarkin_enc.c tarkin_dec.c