1 #Makefile per RTAIXML_MASTER e SLAVE
4 XMLRPC-DIR = ./xmlrpc++0.7
7 #RTAI-PREFIX = /usr/realtime
8 RTAI-DIR = $(DESTDIR)/usr/realtime
9 #RTAI-DIR = `rtai-config --prefix`
10 CONFIG-DIR = $(DESTDIR)/etc/rtaixml
12 INSTALL-DIR = $(RTAI-DIR)/rtaixml
13 SCRIPT-DIR = $(INSTALL-DIR)/scripts
14 LOG-DIR = $(INSTALL-DIR)/logs
18 master_objects = $(MASTER-DIR)/libRTDomain.a $(XMLRPC-DIR)/libXmlRpc.a
19 slave_objects = $(SLAVE-DIR)/libSlave.a $(MASTER-DIR)/libRTDomain.a $(XMLRPC-DIR)/libXmlRpc.a
21 all: lib libRT libSlave rtmanager rtaixml
24 ./check_version $(RTAI-DIR)
27 cd $(XMLRPC-DIR) && $(MAKE) libXmlRpc.a
30 cd $(MASTER-DIR) && $(MAKE) libRTDomain.a
33 cd $(SLAVE-DIR) && $(MAKE) libSlave.a
36 $(CXX) -Wall -Wstrict-prototypes -O2 -I. -I$(MASTER-DIR) -I$(SLAVE-DIR) -I$(RTAI-DIR)/include -I$(XMLRPC-DIR)/src -o $@ $< $(slave_objects) -lpthread
38 rtmanager: rtaixml_master.cpp rtaixml_master.h
39 $(CXX) -Wall -Wstrict-prototypes -O2 -I. -I$(MASTER-DIR) -I$(XMLRPC-DIR)/src -o $@ $< $(master_objects) -lpthread
41 rm -f *.o rtmanager rtaixml
43 cd $(MASTER-DIR) && $(MAKE) clean
44 cd $(SLAVE-DIR) && $(MAKE) clean
45 cd $(XMLRPC-DIR) && $(MAKE) clean
48 ./install_rtaixml $(VERSION) $(RTAI-DIR) $(INSTALL-DIR) $(SCRIPT-DIR) $(CONFIG-DIR) $(LOG-DIR)