]> git.saurik.com Git - apple/security.git/blob - cdsa/cdsa_pluginlib/generator.mk
Security-54.tar.gz
[apple/security.git] / cdsa / cdsa_pluginlib / generator.mk
1 # Makefile for generated files.
2
3 PERL=/usr/bin/perl
4
5 CDSA_HEADERS_DIR = Headers/cdsa
6 SECURITY_HEADERS_DIR = Headers/Security
7 CDSA_PLUGINLIB_DIR = Sources/cdsa_pluginlib
8
9 GEN_SPIGLUE = $(CDSA_PLUGINLIB_DIR)/generator.pl
10 SPIGLUE_GEN = $(patsubst %,$(SECURITY_HEADERS_DIR)/%,ACabstractsession.h CLabstractsession.h CSPabstractsession.h DLabstractsession.h TPabstractsession.h)\
11 $(patsubst %,$(CDSA_PLUGINLIB_DIR)/%,ACabstractsession.cpp CLabstractsession.cpp CSPabstractsession.cpp DLabstractsession.cpp TPabstractsession.cpp)
12 SPIGLUE_DEPENDS = $(patsubst %,$(CDSA_PLUGINLIB_DIR)/%,generator.pl generator.cfg)\
13 $(patsubst %,$(CDSA_HEADERS_DIR)/%,cssmapi.h cssmtype.h cssmconfig.h cssmaci.h cssmcli.h cssmcspi.h cssmdli.h cssmspi.h)
14
15 build: $(SPIGLUE_GEN)
16
17 clean:
18 rm -f $(SPIGLUE_GEN)
19
20 debug: build
21
22 profile: build
23
24 .PHONY: build clean debug profile
25
26 $(SPIGLUE_GEN): $(SPIGLUE_DEPENDS)
27 (cd $(CDSA_PLUGINLIB_DIR);\
28 $(PERL) ./generator.pl ../../$(CDSA_HEADERS_DIR) ../../$(SECURITY_HEADERS_DIR) .)