]> git.sesse.net Git - movit/commitdiff
Small Makefile cleanup to prepare for more files.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 13:11:20 +0000 (15:11 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 13:11:20 +0000 (15:11 +0200)
Makefile

index b8b0f37a41b754099ad1c99327127bd048b84a13..deaf0663ac658efade94db1ddd1ab152debf75d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,15 @@ CC=gcc
 CXX=g++
 CXXFLAGS=-Wall
 LDFLAGS=-lSDL -lSDL_image -lGL
+OBJS=test.o util.o
 
-test: test.o util.o
-       $(CXX) -o test test.o util.o $(LDFLAGS)
+test: $(OBJS)
+       $(CXX) -o test $(OBJS) $(LDFLAGS)
 
 .o: .cpp
        $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
 
 clean:
-       $(RM) test test.o util.o
+       $(RM) test $(OBJS)
 
 .PHONY: clean