blob: 9e9595e78c284dcbf5900b8ce64066fc28c19cb9 [file] [log] [blame]
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +00001#
2# SSLeay/crypto/objects/Makefile
3#
4
5DIR= objects
6TOP= ../..
7CC= cc
8INCLUDES= -I.. -I../../include
9CFLAG=-g
10INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl
Ben Laurie80392571999-01-19 21:36:31 +000012MAKEDEPEND= $(TOP)/util/domd $(TOP)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000013MAKEFILE= Makefile.ssl
14AR= ar r
15
16CFLAGS= $(INCLUDES) $(CFLAG)
17
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000018GENERAL=Makefile README
19TEST=
20APPS=
21
22LIB=$(TOP)/libcrypto.a
Dr. Stephen Henson73934801999-04-24 17:28:43 +000023LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c
24LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000025
26SRC= $(LIBSRC)
27
28EXHEADER= objects.h
29HEADER= $(EXHEADER) obj_dat.h
30
31ALL= $(GENERAL) $(SRC) $(HEADER)
32
33top:
34 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36all: obj_dat.h lib
37
38obj_dat.h: objects.h obj_dat.pl
Ulf Möller99aab161999-04-01 12:34:33 +000039 $(PERL) ./obj_dat.pl < objects.h > obj_dat.h
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000040
41lib: $(LIBOBJ)
42 $(AR) $(LIB) $(LIBOBJ)
Ulf Möller99aab161999-04-01 12:34:33 +000043 $(RANLIB) $(LIB)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000044 @touch lib
45
46files:
Ulf Möller99aab161999-04-01 12:34:33 +000047 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000048
49links:
Ralf S. Engelschallbb8f3c51999-03-06 12:32:06 +000050 @$(TOP)/util/point.sh Makefile.ssl Makefile
Bodo Möller1314c341999-04-29 12:46:59 +000051 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000054
55install:
56 @for i in $(EXHEADER) ; \
57 do \
Bodo Möllerec577821999-04-23 22:13:45 +000058 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
59 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000060 done;
61
62tags:
63 ctags $(SRC)
64
65tests:
66
67lint:
68 lint -DLINT $(INCLUDES) $(SRC)>fluff
69
70depend:
Ulf Möllerf5d7a031999-04-27 01:14:46 +000071 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000072
73dclean:
Ulf Möller99aab161999-04-01 12:34:33 +000074 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000075 mv -f Makefile.new $(MAKEFILE)
76
77clean:
Ralf S. Engelschallbb8f3c51999-03-06 12:32:06 +000078 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000079
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000080# DO NOT DELETE THIS LINE -- make depend depends on it.
Ben Laurie6242bb91999-03-06 14:32:48 +000081
Bodo Möllerbf57da01999-04-23 22:50:50 +000082o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
83o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
84o_names.o: ../../include/openssl/lhash.h ../../include/openssl/objects.h
85o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
86o_names.o: ../../include/openssl/stack.h
87obj_dat.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
88obj_dat.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
89obj_dat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
90obj_dat.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
91obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
92obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
93obj_dat.o: ../cryptlib.h obj_dat.h
94obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
95obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
96obj_err.o: ../../include/openssl/err.h ../../include/openssl/objects.h
97obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
98obj_err.o: ../../include/openssl/stack.h
99obj_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
100obj_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
101obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
102obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
103obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
104obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
105obj_lib.o: ../cryptlib.h