fix wildcards and clean in Makefile
This commit is contained in:
parent
10d4208a7f
commit
0fc09df149
|
@ -14,13 +14,13 @@ sources = BSPFile.cpp Checksum.cpp DebugMemory.cpp DirectoryFile.cpp \
|
||||||
WADFile.cpp Wrapper.cpp XZPFile.cpp ZIPFile.cpp
|
WADFile.cpp Wrapper.cpp XZPFile.cpp ZIPFile.cpp
|
||||||
objs = $(sources:.cpp=.o)
|
objs = $(sources:.cpp=.o)
|
||||||
|
|
||||||
.cpp.o:
|
|
||||||
$(CXX) -c $(CXXFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
all: libhl.so.$(HLLIB_VERS) libhl.a
|
all: libhl.so.$(HLLIB_VERS) libhl.a
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) -c $(CXXFLAGS) -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f \#* *~ *.o *.so.*
|
rm -f libhl.so.$(HLLIB_VERS) libhl.a $(objs)
|
||||||
|
|
||||||
install: libhl.so.$(HLLIB_VERS)
|
install: libhl.so.$(HLLIB_VERS)
|
||||||
install -g root -m 0755 -o root -d $(PREFIX)/lib $(PREFIX)/include
|
install -g root -m 0755 -o root -d $(PREFIX)/lib $(PREFIX)/include
|
||||||
|
|
Loading…
Reference in New Issue