]> git.saurik.com Git - apple/securityd.git/blob - src/generate.mk
securityd-25991.tar.gz
[apple/securityd.git] / src / generate.mk
1 #
2 # Makefile to build MIG-generated sources and headers
3 #
4 XSRCROOT:=$(shell cd $(SRCROOT) >/dev/null; pwd)
5 TARGET:=$(shell cd $(BUILT_PRODUCTS_DIR) >/dev/null; pwd)
6 SRC:=$(TARGET)/derived_src
7 HDR:=$(TARGET)/include
8
9 build: $(SRC)/.mig.ucsp $(SRC)/.mig.secagent
10
11 debug: build
12
13 profile: build
14
15 install: build
16
17 installhdrs: build
18
19 installsrc:
20
21 clean:
22 rm -f $(SRC)/.mig.ucsp $(SRC)/.mig.secagent \
23 $(SRC)/ucsp*.cpp $(SRC)/secagent*.cpp $(HDR)/ucsp.h $(HDR)/secagent.h
24
25 $(SRC)/.mig.ucsp: SecurityServer/ucsp.defs SecurityServer/ucspNotify.defs SecurityServer/ucsp_types.h
26 mkdir -p $(SRC)
27 mkdir -p $(HDR)
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
33
34 $(SRC)/.mig.secagent: SecurityServer/secagent.defs SecurityServer/secagent_types.h
35 mkdir -p $(SRC)
36 mkdir -p $(HDR)
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