mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01:00
Generate dependency files so that when changing one file only stuff dependant on that file gets rebuilt. Avoid cleaning the whole thing on every small change
20 lines
423 B
Makefile
20 lines
423 B
Makefile
OBJECTS = IRCClient.o IRCDDBApp.o IRCDDBClient.o IRCDDB.o IRCDDBMultiClient.o IRCMessage.o IRCMessageQueue.o IRCProtocol.o IRCReceiver.o \
|
|
IRCutils.o
|
|
|
|
.PHONY: all
|
|
all: IRCDDB.a
|
|
|
|
IRCDDB.a: $(OBJECTS)
|
|
$(AR) rcs IRCDDB.a $(OBJECTS)
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -c -o $@ $<
|
|
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) $< > $*.d
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) IRCDDB.a *.o *.d *.bak *~
|
|
|