From: Steinar H. Gunderson Date: Mon, 1 Oct 2012 13:11:20 +0000 (+0200) Subject: Small Makefile cleanup to prepare for more files. X-Git-Tag: 1.0~483 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=d08c44d915b1149c9de699e66a0466388223603f Small Makefile cleanup to prepare for more files. --- diff --git a/Makefile b/Makefile index b8b0f37..deaf066 100644 --- 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