2 # Makefile for the snaccwish
4 # $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/tcl-example/makefile,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $
6 # Revision 1.1.1.1 2001/05/18 23:14:10 mb
7 # Move from private repository to open source repository
9 # Revision 1.1.1.1 1999/03/16 18:06:55 aram
10 # Originals from SMIME Free Library.
12 # Revision 1.2 1997/02/16 12:53:24 rj
13 # remove more generated files
15 # Revision 1.1 1997/01/01 22:57:14 rj
23 SNACC = $(TOP)/compiler/snacc
25 ASN1_SRC_DIR = $(TOP)/asn1specs
26 C++_LIB = $(TOP)/c++-lib
27 ASN1INC = $(C++_LIB)/inc
28 ASN1LIB = $(C++_LIB)/libasn1tcl.a
29 TCL_LIB = $(TOP)/tcl-lib
31 CPPFLAGS += -I$(TOP) -I$(ASN1INC) $(CPPFLAGS.TCL) $(CPPFLAGS.X11) -DTCL -DSNACC_DEEP_COPY
34 PDUS = EdEx-Structured.File,EdEx-Structured.Directory,EdEx-Structured.Various
61 LDFLAGS += $(LDFLAGS.X11)
62 LDLIBS += $(ASN1LIB) $(TREELIBS) $(TCLLIBS) $(LDLIBS.X11pre) -lX11 $(LDLIBS.X11extra) $(LIBS)
67 #-------------------------------------------------------------------------------
69 all:: $(WISH) $(SCRIPT)
71 $(WISH): $(OFILES) $(ASN1LIB)
73 $(CXX) $(LDFLAGS) -o $(WISH) $(OFILES) $(LDLIBS)
76 $(TCL_LIB)/make-snacced $@ ./$(WISH) $(TCL_LIB)
79 cd $(@D) && $(MAKE) tcl-lib
81 # if $(ASN1INC)/asn_useful.h doesn't exist, someone probably called `make clean` in $(C++_LIB).
82 $(ASN1INC)/asn-useful.h:
85 $(ASN1HFILES) $(ASN1CFILES): $(SNACC) $(ASN1FILES) makefile
87 $(SNACC) -u $(ASN1_SRC_DIR)/asn-useful.asn1 -tcl $(PDUS) $(ASN1FILES)
90 cd $(@D) && $(MAKE) $(@F)
93 $(RM) $(ASN1HFILES) $(ASN1CFILES)