fix wildcards and clean in Makefile

This commit is contained in:
Ondřej Hošek 2012-06-30 14:19:39 +02:00
parent 10d4208a7f
commit 0fc09df149
1 changed files with 4 additions and 4 deletions

View File

@ -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