]>
Commit | Line | Data |
---|---|---|
bac41a7b A |
1 | # c-examples/snmp/makefile |
2 | # | |
a66d0d4a | 3 | # $Header: /cvs/root/Security/SecuritySNACCRuntime/c-examples/snmp/Attic/makefile,v 1.1.1.1 2001/05/18 23:14:07 mb Exp $ |
bac41a7b A |
4 | # $Log: makefile,v $ |
5 | # Revision 1.1.1.1 2001/05/18 23:14:07 mb | |
6 | # Move from private repository to open source repository | |
7 | # | |
8 | # Revision 1.1.1.1 1999/03/16 18:06:09 aram | |
9 | # Originals from SMIME Free Library. | |
10 | # | |
11 | # Revision 1.6 1995/07/27 09:57:38 rj | |
12 | # 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. | |
13 | # | |
14 | # Revision 1.5 1995/07/24 20:48:27 rj | |
15 | # `cd && make' instead of `cd; make'. | |
16 | # | |
17 | # changed `_' to `-' in file names. | |
18 | # | |
19 | # Revision 1.4 1995/02/20 11:52:11 rj | |
20 | # build snacc if it doesn't exist. | |
21 | # | |
22 | # Revision 1.3 1995/02/13 15:05:48 rj | |
23 | # augment CPPFLAGS, not overwrite. | |
24 | # we need the compiler for the dependencies, so make it if it doesn't yet exist. | |
25 | # | |
26 | # Revision 1.2 1994/08/31 23:25:46 rj | |
27 | # print a less irritating usage. | |
28 | # | |
29 | # Revision 1.1 1994/08/31 08:46:34 rj | |
30 | # first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog. | |
31 | # | |
32 | ||
33 | include ../../makehead | |
34 | ||
35 | TOP = ../.. | |
36 | ||
37 | ASN1_SPEC_DIR = $(TOP)/asn1specs | |
38 | ||
39 | ASN1_C_LIB_DIR = $(TOP)/c-lib | |
40 | ASN1_C_INC_DIR = $(ASN1_C_LIB_DIR)/inc | |
41 | ASN1_C_LIB = $(ASN1_C_LIB_DIR)/libasn1csbuf.a | |
42 | ||
43 | COMPILERDIR = $(TOP)/compiler | |
44 | SNACC = $(COMPILERDIR)/snacc | |
45 | ||
46 | CPPFLAGS += -I$(TOP) -I$(ASN1_C_INC_DIR) -DUSE_SBUF | |
47 | ||
48 | ASN1FILES = \ | |
49 | $(ASN1_SPEC_DIR)/rfc1155-smi.asn1 \ | |
50 | $(ASN1_SPEC_DIR)/rfc1157-snmp.asn1 \ | |
51 | $(ASN1_SPEC_DIR)/rfc1213-mib2.asn1 | |
52 | ||
53 | ASN1HFILES = \ | |
54 | rfc1155-smi.h \ | |
55 | rfc1213-mib2.h \ | |
56 | rfc1157-snmp.h | |
57 | ||
58 | ASN1CFILES = \ | |
59 | rfc1155-smi.c \ | |
60 | rfc1213-mib2.c \ | |
61 | rfc1157-snmp.c | |
62 | ||
63 | DISTFILES = \ | |
64 | README \ | |
65 | makefile \ | |
66 | ||
67 | #------------------------------------------------------------------------------- | |
68 | ||
69 | default:: warning | |
70 | ||
71 | warning:: | |
72 | @echo '' | |
73 | @echo 'read the README and enter `$(MAKE) fail` to test for yourself' | |
74 | @echo '' | |
75 | ||
76 | fail:: $(ASN1HFILES) $(ASN1CFILES) | |
77 | $(CC) $(CPPFLAGS) $(CFLAGS) -c $(ASN1CFILES) | |
78 | ||
79 | $(ASN1HFILES) \ | |
80 | $(ASN1CFILES): $(SNACC) $(ASN1FILES) | |
81 | $(REASON) | |
82 | $(SNACC) -P $(ASN1FILES) > snacc.output~ | |
83 | mv snacc.output~ snacc.output | |
84 | ||
85 | $(SNACC): | |
86 | cd $(@D) && $(MAKE) $(@F) | |
87 | ||
88 | check:: | |
89 | @echo "the purpose of this directories' contents is to show deficiencies." | |
90 | @echo "if you want to exercise 'em, make the phony target "'`'"fail'" | |
91 | ||
92 | clean:: | |
93 | $(RM) *.o *~ .emacs* core $(ASN1HFILES) $(ASN1CFILES) snacc.output | |
94 | ||
95 | depend:: $(SNACC) | |
96 | ||
97 | include ../../maketail |