1 # Makefile for generated files.
5 CDSA_HEADERS_DIR = Headers/cdsa
6 CDSA_UTILITIES_DIR = Sources/cdsa_utilities
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)
13 build: $(ERRORCODES_GEN)
16 rm -f $(ERRORCODES_GEN)
22 .PHONY: build clean debug profile
24 $(ERRORCODES_GEN): $(ERRORCODE_DEPENDS)
25 (cd $(CDSA_UTILITIES_DIR);\
26 $(PERL) ./generator.pl ../../$(CDSA_HEADERS_DIR) .)