2 # Makefile to build MIG-generated sources and headers
4 XSRCROOT:=$(shell cd $(SRCROOT) >/dev/null; pwd)
5 TARGET:=$(shell cd $(BUILT_PRODUCTS_DIR) >/dev/null; pwd)
6 SRC:=$(TARGET)/derived_src
9 build: $(SRC)/.mig.ucsp $(SRC)/.mig.secagent
22 rm -f $(SRC)/.mig.ucsp $(SRC)/.mig.secagent \
23 $(SRC)/ucsp*.cpp $(SRC)/secagent*.cpp $(HDR)/ucsp.h $(HDR)/secagent.h
25 $(SRC)/.mig.ucsp: SecurityServer/ucsp.defs SecurityServer/ucspNotify.defs SecurityServer/ucsp_types.h
28 cd /tmp; mig -server $(SRC)/ucspServer.cpp -user $(SRC)/ucspUser.cpp \
29 -header $(HDR)/ucsp.h $(XSRCROOT)/SecurityServer/ucsp.defs
30 cd /tmp; mig -server $(SRC)/ucspNotifyReceiver.cpp -user $(SRC)/ucspNotifySender.cpp \
31 -header $(HDR)/ucspNotify.h $(XSRCROOT)/SecurityServer/ucspNotify.defs
32 touch $(SRC)/.mig.ucsp
34 $(SRC)/.mig.secagent: SecurityServer/secagent.defs SecurityServer/secagent_types.h
37 cd /tmp; mig -server $(SRC)/secagentServer.cpp -user $(SRC)/secagentUser.cpp \
38 -header $(HDR)/secagent.h $(XSRCROOT)/SecurityServer/secagent.defs
39 touch $(SRC)/.mig.secagent