]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/tcl-example/makefile
Security-54.1.3.tar.gz
[apple/security.git] / SecuritySNACCRuntime / tcl-example / makefile
1 #
2 # Makefile for the snaccwish
3 #
4 # $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/tcl-example/makefile,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $
5 # $Log: makefile,v $
6 # Revision 1.1.1.1 2001/05/18 23:14:10 mb
7 # Move from private repository to open source repository
8 #
9 # Revision 1.1.1.1 1999/03/16 18:06:55 aram
10 # Originals from SMIME Free Library.
11 #
12 # Revision 1.2 1997/02/16 12:53:24 rj
13 # remove more generated files
14 #
15 # Revision 1.1 1997/01/01 22:57:14 rj
16 # first check-in
17 #
18
19 include ../makehead
20
21 TOP = ..
22
23 SNACC = $(TOP)/compiler/snacc
24
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
30
31 CPPFLAGS += -I$(TOP) -I$(ASN1INC) $(CPPFLAGS.TCL) $(CPPFLAGS.X11) -DTCL -DSNACC_DEEP_COPY
32
33 PDUS = X.T1,X.T4
34 PDUS = EdEx-Structured.File,EdEx-Structured.Directory,EdEx-Structured.Various
35
36 ASN1FILES = \
37 edex0.asn1 \
38 edex1.asn1
39
40 ASN1HFILES = \
41 edex0.h \
42 edex1.h
43
44 ASN1CFILES = \
45 edex0.C \
46 edex1.C \
47 modules.C
48
49 ASN1OFILES = \
50 edex0.o \
51 edex1.o \
52 modules.o
53
54 OFILES = \
55 $(ASN1OFILES)
56
57 DISTFILES = \
58 makefile \
59 $(ASN1FILES)
60
61 LDFLAGS += $(LDFLAGS.X11)
62 LDLIBS += $(ASN1LIB) $(TREELIBS) $(TCLLIBS) $(LDLIBS.X11pre) -lX11 $(LDLIBS.X11extra) $(LIBS)
63
64 WISH = snaccwish
65 SCRIPT = snacced
66
67 #-------------------------------------------------------------------------------
68
69 all:: $(WISH) $(SCRIPT)
70
71 $(WISH): $(OFILES) $(ASN1LIB)
72 $(REASON)
73 $(CXX) $(LDFLAGS) -o $(WISH) $(OFILES) $(LDLIBS)
74
75 $(SCRIPT)::
76 $(TCL_LIB)/make-snacced $@ ./$(WISH) $(TCL_LIB)
77
78 $(ASN1LIB)::
79 cd $(@D) && $(MAKE) tcl-lib
80
81 # if $(ASN1INC)/asn_useful.h doesn't exist, someone probably called `make clean` in $(C++_LIB).
82 $(ASN1INC)/asn-useful.h:
83 $(MAKE) $(ASN1LIB)
84
85 $(ASN1HFILES) $(ASN1CFILES): $(SNACC) $(ASN1FILES) makefile
86 $(REASON)
87 $(SNACC) -u $(ASN1_SRC_DIR)/asn-useful.asn1 -tcl $(PDUS) $(ASN1FILES)
88
89 $(SNACC)::
90 cd $(@D) && $(MAKE) $(@F)
91
92 clean::
93 $(RM) $(ASN1HFILES) $(ASN1CFILES)
94 $(RM) $(OFILES)
95
96 clobber::
97 $(RM) $(WISH)
98
99 # dummy:
100 install::
101
102 include ../maketail