More debug code moving.
[fjl] / Makefile
index c3e6ff7d09f6b2e1228931a46ef1bf0ab91fc626..6da3eb2960f1d50edf1e7ffd847fb7901c6c9a5d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC=gcc
 CFLAGS=-std=gnu99 -O2 -msse4.1 -g -Wall -Wextra
 LDFLAGS=-lm -lrt
 
-all: tests
+all: tests driver
 
 UNSTUFF_TEST_OBJS=unstuff.o unstuff_test.o benchmark.o
 unstuff_test: $(UNSTUFF_TEST_OBJS)
@@ -16,14 +16,18 @@ DEHUFF_TEST_OBJS=dehuff.o input.o bitsource.o dehuff_test.o
 dehuff_test: $(DEHUFF_TEST_OBJS)
        $(CC) $(LDFLAGS) -o $@ $(DEHUFF_TEST_OBJS)
 
-BYTESOURCE_TEST_OBJS=bytesource.o choice.o unstuff.o bytesource_test.o
+BYTESOURCE_TEST_OBJS=bytesource.o choice.o unstuff.o bytesource_test.o idct_float.o
 bytesource_test: $(BYTESOURCE_TEST_OBJS)
        $(CC) $(LDFLAGS) -o $@ $(BYTESOURCE_TEST_OBJS)
 
-IDCT_TEST_OBJS=idct.o idct_test.o benchmark.o
+IDCT_TEST_OBJS=idct_float.o idct_imprecise_int.o idct_reference.o idct_test.o benchmark.o
 idct_test: $(IDCT_TEST_OBJS)
        $(CC) $(LDFLAGS) -o $@ $(IDCT_TEST_OBJS)
 
+DRIVER_OBJS=driver.o idct_float.o unstuff.o bytesource.o bitsource.o choice.o dehuff.o input.o
+driver: $(DRIVER_OBJS)
+       $(CC) $(LDFLAGS) -o $@ $(DRIVER_OBJS)
+
 tests: unstuff_test bitsource_test dehuff_test bytesource_test idct_test
 clean:
        $(RM) $(UNSTUFF_TEST_OBJS) unstuff_test
@@ -31,6 +35,7 @@ clean:
        $(RM) $(DEHUFF_TEST_OBJS) dehuff_test
        $(RM) $(BYTESOURCE_TEST_OBJS) bytesource_test
        $(RM) $(IDCT_TEST_OBJS) idct_test
+       $(RM) $(DRIVER_OBJS) driver
 
 test: tests
        ./unstuff_test