[xiph-cvs] cvs commit: w3d Makefile

Holger Waechtler holger at xiph.org
Tue Aug 7 07:40:13 PDT 2001



holger      01/08/07 07:40:12

  Modified:    .        Makefile
  Log:
  Ooops, I accidentally killed the Makefile ...

Revision  Changes    Path
1.14      +26 -16    w3d/Makefile

Index: Makefile
===================================================================
RCS file: /usr/local/cvsroot/w3d/Makefile,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Makefile	2001/08/07 14:37:41	1.13
+++ Makefile	2001/08/07 14:40:12	1.14
@@ -1,36 +1,46 @@
 CC = gcc
 RM = rm -rf
 
-CFLAGS = -g -O0 -Wall -I.. -DTYPE=uint16_t
-LFLAGS = -g
+CFLAGS = -g -O0 -Wall -DTYPE=int16_t -DRLECODER -DDBG_XFORM -DDBG_MEMLEAKS
+LFLAGS = -g #-lefence
 
-TARGETS = ppmdiff yuv2ppm deinterlace
+OBJS = mem.o pnm.o wavelet.o wavelet_xform.o wavelet_coeff.o wavelet_coeff2.o \
+	yuv.o tarkin.o tarkin-io.o
 
-OBJS = $(TARGETS:=.o) ../pnm.o
-SRCS = $(OBJS:.o=.c)
+TEST_TARGETS = _test_bitcoder _test_rle _test_huffman
 
+SRCS = $(OBJS:.o=.c)
+TEST_OBJS = $(TEST_TARGETS:=.o)
+TEST_SRCS = $(TEST_OBJS:.o=.c)
 
-all: $(OBJS) $(TARGETS)
 
-ppmdiff: ppmdiff.o ../pnm.o
-	$(CC) $(LFLAGS) ppmdiff.o ../pnm.o -o $@
+all: tarkin_enc tarkin_dec
 
-yuv2ppm: yuv2ppm.o ../pnm.o
-	$(CC) $(LFLAGS) yuv2ppm.o ../pnm.o -o $@
+tarkin_enc: $(OBJS) tarkin_enc.o
+	$(CC) $(LFLAGS) $(OBJS) tarkin_enc.o -o $@
 
-deinterlace: deinterlace.o ../pnm.o
-	$(CC) $(LFLAGS) deinterlace.o ../pnm.o -o $@
+tarkin_dec: $(OBJS) tarkin_dec.o
+	$(CC) $(LFLAGS) $(OBJS) tarkin_dec.o -o $@
 
 .c.o: .depend
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CFLAGS) -c $<
 
 clean:
-	$(RM) $(OBJS) $(TARGETS) gmon.out core .depend .depend.bak
+	$(RM) $(OBJS) $(TARGET) gmon.out core .depend .depend.bak rle.histogram
+	$(RM) *.ppm *.pgm
+	$(RM) $(TEST_TARGETS) $(TEST_OBJS)
+	$(RM) tarkin_enc tarkin_dec tarkin_enc.o tarkin_dec.o
+
+
+test: .depend $(TEST_TARGETS)
+	./_test_bitcoder
+	./_test_huffman
+	./_test_rle
 
 
-.depend: $(SRCS)
+.depend: $(SRCS) $(TEST_SRCS)
         $(RM) .depend
         touch .depend
-	sh ../tools/makedepend.sh -f.depend -- $(CFLAGS) -- $(SRCS)
+	sh tools/makedepend.sh -f.depend -- $(CFLAGS) -- $(SRCS) $(TEST_SRCS) tarkin_enc.c tarkin_dec.c
 
 -include .depend

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list