1 # Makefile for generated files.
5 CDSA_HEADERS_DIR = Headers/cdsa
6 SECURITY_HEADERS_DIR = Headers/Security
7 CDSA_PLUGINLIB_DIR = Sources/cdsa_pluginlib
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)
24 .PHONY: build clean debug profile
26 $(SPIGLUE_GEN): $(SPIGLUE_DEPENDS)
27 (cd $(CDSA_PLUGINLIB_DIR);\
28 $(PERL) ./generator.pl ../../$(CDSA_HEADERS_DIR) ../../$(SECURITY_HEADERS_DIR) .)