]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/c++-examples/test-lib/makefile
e232a28d75ef3f41c2f29388e15ccee5732120ed
[apple/security.git] / SecuritySNACCRuntime / c++-examples / test-lib / makefile
1 # c++-examples/test-lib/makefile
2 #
3 # $Header: /cvs/Darwin/Security/SecuritySNACCRuntime/c++-examples/test-lib/makefile,v 1.1.1.1 2001/05/18 23:14:05 mb Exp $
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.2 2000/12/22 00:03:29 dmitch
9 # Misc. updates for clean build on Cheetah 1D7.
10 #
11 # Revision 1.1.1.1 1999/03/16 18:05:58 aram
12 # Originals from SMIME Free Library.
13 #
14 # Revision 1.7 1997/03/03 11:58:30 wan
15 # Final pre-delivery stuff (I hope).
16 #
17 # Revision 1.6 1997/02/28 13:39:41 wan
18 # Modifications collected for new version 1.3: Bug fixes, tk4.2.
19 #
20 # Revision 1.5 1995/07/24 15:31:14 rj
21 # changed `_' to `-' in file names.
22 #
23 # Revision 1.4 1995/02/13 14:58:17 rj
24 # augment CPPFLAGS, not overwrite
25 #
26 # Revision 1.3 1994/09/01 02:26:58 rj
27 # use CXX instead of CC to get another default linkage
28 #
29 # Revision 1.2 1994/08/31 21:44:25 rj
30 # rebuild the executables when the c++-lib is newer.
31 #
32 # Revision 1.1 1994/08/31 08:48:17 rj
33 # first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog.
34 #
35
36 include ../../makehead
37
38 TOP = ../..
39
40 ASN1_C++_LIB_DIR = $(TOP)/c++-lib
41 ASN1_C++_INC_DIR = $(ASN1_C++_LIB_DIR)/inc
42 ASN1_C++_LIB = $(ASN1_C++_LIB_DIR)/libasn1c++.a
43
44 CC = $(CXX)
45 CPPFLAGS += -I$(TOP) -I$(ASN1_C++_INC_DIR) -F/System/Library/PrivateFrameworks
46
47 CFILES = \
48 test-lib.C
49
50 DISTFILES = \
51 README \
52 makefile \
53 $(CFILES)
54
55 #-------------------------------------------------------------------------------
56
57 default:: check
58
59 check:: test-lib
60 ./test-lib
61
62 test-lib: $(ASN1_C++_LIB) test-lib.o
63 $(CXX) $(LDFLAGS) -o $@ test-lib.o $(ASN1_C++_LIB) $(LIBS) -lstdc++
64
65 clean::
66 $(RM) *.o *~ .emacs* test-lib core
67
68 include ../../maketail