]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cdsa_utilities/lib/generator.mk
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / libsecurity_cdsa_utilities / lib / generator.mk
1 # Makefile for generated files.
2
3 PERL=/usr/bin/perl
4
5 CDSA_HEADERS_DIR = Headers/cdsa
6 CDSA_UTILITIES_DIR = Sources/cdsa_utilities
7
8 GEN_ERRORCODES = $(CDSA_UTILITIES_DIR)/generator.pl
9 ERRORCODES_GEN = $(patsubst %,$(CDSA_UTILITIES_DIR)/%,errorcodes.gen)
10 ERRORCODES_DEPENDS = $(GEN_ERRORCODES)\
11 $(patsubst %,$(CDSA_HEADERS_DIR)/%,cssmerr.h)
12
13 build: $(ERRORCODES_GEN)
14
15 clean:
16 rm -f $(ERRORCODES_GEN)
17
18 debug: build
19
20 profile: build
21
22 .PHONY: build clean debug profile
23
24 $(ERRORCODES_GEN): $(ERRORCODE_DEPENDS)
25 (cd $(CDSA_UTILITIES_DIR);\
26 $(PERL) ./generator.pl ../../$(CDSA_HEADERS_DIR) .)