#Makefile per RTAIXML_MASTER e SLAVE MASTER-DIR = ./master XMLRPC-DIR = ./xmlrpc++0.7 SLAVE-DIR = ./slave #RTAI-PREFIX = /usr/realtime RTAI-DIR = $(DESTDIR)/usr/realtime #RTAI-DIR = `rtai-config --prefix` CONFIG-DIR = $(DESTDIR)/etc/rtaixml INSTALL-DIR = $(RTAI-DIR)/rtaixml SCRIPT-DIR = $(INSTALL-DIR)/scripts LOG-DIR = $(INSTALL-DIR)/logs VERSION = "0.8.2" master_objects = $(MASTER-DIR)/libRTDomain.a $(XMLRPC-DIR)/libXmlRpc.a slave_objects = $(SLAVE-DIR)/libSlave.a $(MASTER-DIR)/libRTDomain.a $(XMLRPC-DIR)/libXmlRpc.a all: lib libRT libSlave rtmanager rtaixml cv: ./check_version $(RTAI-DIR) lib: cd $(XMLRPC-DIR) && $(MAKE) libXmlRpc.a libRT: cd $(MASTER-DIR) && $(MAKE) libRTDomain.a libSlave: cd $(SLAVE-DIR) && $(MAKE) libSlave.a rtaixml: rtaixml.cpp $(CXX) -Wall -Wstrict-prototypes -O2 -I. -I$(MASTER-DIR) -I$(SLAVE-DIR) -I$(RTAI-DIR)/include -I$(XMLRPC-DIR)/src -o $@ $< $(slave_objects) -lpthread rtmanager: rtaixml_master.cpp rtaixml_master.h $(CXX) -Wall -Wstrict-prototypes -O2 -I. -I$(MASTER-DIR) -I$(XMLRPC-DIR)/src -o $@ $< $(master_objects) -lpthread clean: rm -f *.o rtmanager rtaixml rm -f *~ cd $(MASTER-DIR) && $(MAKE) clean cd $(SLAVE-DIR) && $(MAKE) clean cd $(XMLRPC-DIR) && $(MAKE) clean install: all ./install_rtaixml $(VERSION) $(RTAI-DIR) $(INSTALL-DIR) $(SCRIPT-DIR) $(CONFIG-DIR) $(LOG-DIR)