### Variables: ###
-CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
+CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP
WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
WX_CONFIG_FLAGS = $(WX_CONFIG_DEBUG_FLAG) $(WX_CONFIG_UNICODE_FLAG) \
$(CPPFLAGS) $(CXXFLAGS)
IPCSERVER_OBJECTS = \
ipcserver_server.o
+BASEIPCCLIENT_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` \
+ $(CPPFLAGS) $(CXXFLAGS)
+BASEIPCCLIENT_OBJECTS = \
+ baseipcclient_baseclient.o
+BASEIPCSERVER_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` \
+ $(CPPFLAGS) $(CXXFLAGS)
+BASEIPCSERVER_OBJECTS = \
+ baseipcserver_baseserver.o
### Conditionally set variables: ###
### Targets: ###
-all: test_for_selected_wxbuild ipcclient ipcserver
+all: test_for_selected_wxbuild ipcclient ipcserver baseipcclient baseipcserver
install: all
rm -f ./*.d
rm -f ipcclient
rm -f ipcserver
+ rm -f baseipcclient
+ rm -f baseipcserver
test_for_selected_wxbuild:
@$(WX_CONFIG) $(WX_CONFIG_FLAGS)
ipcclient: $(IPCCLIENT_OBJECTS)
- $(CXX) -o $@ $(IPCCLIENT_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,net,base`
+ $(CXX) -o $@ $(IPCCLIENT_OBJECTS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,net,base` $(LDFLAGS)
ipcserver: $(IPCSERVER_OBJECTS)
- $(CXX) -o $@ $(IPCSERVER_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,net,base`
+ $(CXX) -o $@ $(IPCSERVER_OBJECTS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,net,base` $(LDFLAGS)
+
+baseipcclient: $(BASEIPCCLIENT_OBJECTS)
+ $(CXX) -o $@ $(BASEIPCCLIENT_OBJECTS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs net,base` $(LDFLAGS)
+
+baseipcserver: $(BASEIPCSERVER_OBJECTS)
+ $(CXX) -o $@ $(BASEIPCSERVER_OBJECTS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs net,base` $(LDFLAGS)
ipcclient_client.o: ./client.cpp
$(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
ipcserver_server.o: ./server.cpp
$(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
+baseipcclient_baseclient.o: ./baseclient.cpp
+ $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
+
+baseipcserver_baseserver.o: ./baseserver.cpp
+ $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
+
.PHONY: all install uninstall clean