]> git.sesse.net Git - movit/commitdiff
Yet more Makefile tweaks/fixes.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 16:58:20 +0000 (18:58 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 16:58:20 +0000 (18:58 +0200)
Makefile

index 69e9ef44287ab4109acbc9d2e138f6508e9ea389..aaa9896ec36294e3c4a22d96a1190813e084f576 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -47,11 +47,11 @@ gtest_sdl_main.o: gtest_sdl_main.cpp
 
 # Unit tests.
 effect_chain_test: effect_chain_test.o $(TEST_OBJS) libmovit.a
 
 # Unit tests.
 effect_chain_test: effect_chain_test.o $(TEST_OBJS) libmovit.a
-       $(CXX) -o $@ effect_chain_test.o $(TEST_OBJS) libmovit.a $(LDFLAGS)
+       $(CXX) -o $@ $^ $(LDFLAGS)
 mix_effect_test: mix_effect_test.o $(TEST_OBJS) libmovit.a
 mix_effect_test: mix_effect_test.o $(TEST_OBJS) libmovit.a
-       $(CXX) -o $@ mix_effect_test.o $(TEST_OBJS) libmovit.a $(LDFLAGS)
+       $(CXX) -o $@ $^ $(LDFLAGS)
 
 
-OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(GDEMO_OBJS)
+OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o)
 
 # A small demo program.
 demo: libmovit.a $(DEMO_OBJS)
 
 # A small demo program.
 demo: libmovit.a $(DEMO_OBJS)