From 0fc09df1491aa605a85cc4b57a04481b7928353e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 30 Jun 2012 14:19:39 +0200 Subject: [PATCH] fix wildcards and clean in Makefile --- HLLib/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HLLib/Makefile b/HLLib/Makefile index 8e5831f..f8bd033 100644 --- a/HLLib/Makefile +++ b/HLLib/Makefile @@ -14,13 +14,13 @@ sources = BSPFile.cpp Checksum.cpp DebugMemory.cpp DirectoryFile.cpp \ WADFile.cpp Wrapper.cpp XZPFile.cpp ZIPFile.cpp objs = $(sources:.cpp=.o) -.cpp.o: - $(CXX) -c $(CXXFLAGS) -o $@ $< - all: libhl.so.$(HLLIB_VERS) libhl.a +%.o: %.cpp + $(CXX) -c $(CXXFLAGS) -o $@ $^ + clean: - rm -f \#* *~ *.o *.so.* + rm -f libhl.so.$(HLLIB_VERS) libhl.a $(objs) install: libhl.so.$(HLLIB_VERS) install -g root -m 0755 -o root -d $(PREFIX)/lib $(PREFIX)/include