]> git.saurik.com Git - apple/security.git/blame - SecuritySNACCRuntime/c++-examples/snmp/makefile
Security-54.1.3.tar.gz
[apple/security.git] / SecuritySNACCRuntime / c++-examples / snmp / makefile
CommitLineData
bac41a7b
A
1# c++-examples/snmp/makefile
2#
5a719ac8 3# $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/c++-examples/snmp/makefile,v 1.1.1.1 2001/05/18 23:14:05 mb Exp $
bac41a7b
A
4# $Log: makefile,v $
5# Revision 1.1.1.1 2001/05/18 23:14:05 mb
6# Move from private repository to open source repository
7#
8# Revision 1.3 2000/12/22 00:03:17 dmitch
9# Misc. updates for clean build on Cheetah 1D7.
10#
11# Revision 1.2 2000/06/08 19:59:20 dmitch
12# Mods for X port.
13#
14# Revision 1.1.1.1 1999/03/16 18:05:58 aram
15# Originals from SMIME Free Library.
16#
17# Revision 1.10 1997/02/16 16:48:08 rj
18# made return *this after calling abort()'' a compile time option.
19#
20# Revision 1.9 1995/07/27 11:59:01 rj
21# rfc1213-mib -> rfc1213-mib2
22#
23# Revision 1.8 1995/07/27 08:29:58 rj
24# rfc1155-smi.asn1, rfc1157-snmp.asn1 and rfc1213-mib2.asn1 renamed from 1155-smi.asn1, 1157-snmp.asn1 and 1213-mib2.asn1 to accomodate to snacc's new file name generation scheme.
25#
26# Revision 1.7 1995/07/24 15:30:11 rj
27# `cd && make' instead of `cd; make'.
28#
29# changed `_' to `-' in file names.
30#
31# Revision 1.6 1995/02/20 11:48:41 rj
32# build snacc if it doesn't exist.
33#
34# Revision 1.5 1995/02/13 14:58:15 rj
35# augment CPPFLAGS, not overwrite
36#
37# Revision 1.4 1994/10/08 04:36:28 rj
38# for the dependencies, generate the snacc compiler if it doesn't exist.
39#
40# Revision 1.3 1994/09/01 02:26:56 rj
41# use CXX instead of CC to get another default linkage
42#
43# Revision 1.2 1994/08/31 23:25:41 rj
44# print a less irritating usage.
45#
46# Revision 1.1 1994/08/31 08:48:14 rj
47# first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog.
48#
49
50include ../../makehead
51
52TOP = ../..
53
54ASN1_SPEC_DIR = $(TOP)/asn1specs
55
56ASN1_C++_LIB_DIR = $(TOP)/c++-lib
57ASN1_C++_INC_DIR = $(ASN1_C++_LIB_DIR)/inc
58ASN1_C++_LIB = $(ASN1_C++_LIB_DIR)/libasn1c++.a
59
60COMPILERDIR = $(TOP)/compiler
61SNACC = $(COMPILERDIR)/snacc
62
63CC = $(CXX)
64CPPFLAGS += -I$(TOP) -I$(ASN1_C++_INC_DIR) -F/System/Library/PrivateFrameworks
65
66ASN1FILES = \
67 $(ASN1_SPEC_DIR)/rfc1155-smi.asn1 \
68 $(ASN1_SPEC_DIR)/rfc1157-snmp.asn1 \
69 $(ASN1_SPEC_DIR)/rfc1213-mib2.asn1
70
71ASN1HFILES = \
72 rfc1155-smi.h \
73 rfc1213-mib2.h \
74 rfc1157-snmp.h
75
76ASN1CFILES = \
77 rfc1155-smi.cpp \
78 rfc1213-mib2.cpp \
79 rfc1157-snmp.cpp
80
81DISTFILES = \
82 README \
83 makefile \
84
85#-------------------------------------------------------------------------------
86
87default:: warning
88
89warning::
90 @echo ''
91 @echo 'read the README and enter `$(MAKE) fail` to test for yourself'
92 @echo ''
93
94fail:: $(ASN1HFILES) $(ASN1CFILES)
95 $(CXX) $(CPPFLAGS) $(CFLAGS) -c $(ASN1CFILES)
96
97$(ASN1HFILES) \
98$(ASN1CFILES): $(SNACC) $(ASN1FILES)
99 $(REASON)
100 $(SNACC) -P -C $(SNACC_NOVOLAT) $(ASN1FILES) > snacc.output~
101 mv snacc.output~ snacc.output
102
103$(SNACC):
104 cd $(@D) && $(MAKE) $(@F)
105
106check::
107 @echo "the purpose of this directories' contents is to show deficiencies."
108 @echo "if you want to exercise 'em, make the phony target "'`'"fail'"
109
110clean::
111 $(RM) *.o *~ .emacs* core $(ASN1HFILES) $(ASN1CFILES) snacc.output
112
113depend:: $(SNACC)
114
115include ../../maketail