]> git.saurik.com Git - apple/security.git/blob - cdsa/cssm/generator.mk
Security-54.1.3.tar.gz
[apple/security.git] / cdsa / cssm / generator.mk
1 # Makefile for generated files.
2
3 PERL=/usr/bin/perl
4
5 CDSA_HEADERS_DIR = Headers/cdsa
6 CDSA_SOURCES_DIR = Sources/cdsa
7
8 GEN_APIGLUE = $(CDSA_SOURCES_DIR)/generator.pl
9 APIGLUE_GEN = $(patsubst %,$(CDSA_SOURCES_DIR)/%,transition.gen funcnames.gen generator.rpt)
10 APIGLUE_DEPENDS = $(patsubst %,$(CDSA_SOURCES_DIR)/%, generator.pl generator.cfg)\
11 $(patsubst %,$(CDSA_HEADERS_DIR)/%,cssmapi.h cssmtype.h cssmconfig.h cssmaci.h cssmcspi.h cssmdli.h cssmcli.h cssmtpi.h)
12
13 build: $(APIGLUE_GEN)
14
15 clean:
16 rm -f $(APIGLUE_GEN)
17
18 debug: build
19
20 profile: build
21
22 .PHONY: build clean debug profile
23
24 $(APIGLUE_GEN): $(APIGLUE_DEPENDS)
25 (cd $(CDSA_SOURCES_DIR);\
26 $(PERL) ./generator.pl ../../$(CDSA_HEADERS_DIR) .)