blob: 94fd7aae7c417f9b121feb0582064aa858f19884 [file] [log] [blame]
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +00001#
Dr. Stephen Henson15ac9712006-02-04 01:45:59 +00002# OpenSSL/crypto/objects/Makefile
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +00003#
4
5DIR= objects
6TOP= ../..
7CC= cc
Richard Levitte41d2a332001-02-22 14:45:02 +00008INCLUDES= -I.. -I$(TOP) -I../../include
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +00009CFLAG=-g
Ben Laurie42ba5d22005-03-30 13:05:57 +000010MAKEFILE= Makefile
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000011AR= ar r
Lutz Jänicke0f7b63c2002-06-06 10:16:59 +000012PERL= perl
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000013
14CFLAGS= $(INCLUDES) $(CFLAG)
15
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000016GENERAL=Makefile README
17TEST=
18APPS=
19
20LIB=$(TOP)/libcrypto.a
Dr. Stephen Hensond2027092006-04-18 23:36:07 +000021LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
22LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000023
24SRC= $(LIBSRC)
25
Richard Levittec2bbf9c2000-07-05 02:45:36 +000026EXHEADER= objects.h obj_mac.h
Dr. Stephen Hensond2027092006-04-18 23:36:07 +000027HEADER= $(EXHEADER) obj_dat.h obj_xref.h
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000028
29ALL= $(GENERAL) $(SRC) $(HEADER)
30
31top:
32 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33
Dr. Stephen Hensond2027092006-04-18 23:36:07 +000034all: obj_dat.h obj_xref.h lib
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000035
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000036lib: $(LIBOBJ)
Dr. Stephen Hensondf6de392011-01-26 16:08:08 +000037 $(ARX) $(LIB) $(LIBOBJ)
Bodo Möller4e20b1a2001-03-09 14:01:42 +000038 $(RANLIB) $(LIB) || echo Never mind.
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000039 @touch lib
40
Bodo Möller1d008002001-03-06 08:58:38 +000041obj_dat.h: obj_dat.pl obj_mac.h
Ulf Möller86417022000-11-03 16:35:31 +000042 $(PERL) obj_dat.pl obj_mac.h obj_dat.h
Richard Levitte3ab56512000-10-14 20:09:54 +000043
Bodo Möller1d008002001-03-06 08:58:38 +000044# objects.pl both reads and writes obj_mac.num
45obj_mac.h: objects.pl objects.txt obj_mac.num
Ulf Möller86417022000-11-03 16:35:31 +000046 $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
Andy Polyakovf7f21252005-03-12 09:12:44 +000047 @sleep 1; touch obj_mac.h; sleep 1
Richard Levitte3ab56512000-10-14 20:09:54 +000048
Dr. Stephen Hensond2027092006-04-18 23:36:07 +000049obj_xref.h: objxref.pl obj_xref.txt obj_mac.num
Dr. Stephen Hensonaaa29f92009-02-10 13:03:31 +000050 $(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h
Dr. Stephen Hensond2027092006-04-18 23:36:07 +000051 @sleep 1; touch obj_xref.h; sleep 1
52
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000053files:
Ben Laurie42ba5d22005-03-30 13:05:57 +000054 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000055
56links:
Bodo Möller1314c341999-04-29 12:46:59 +000057 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
58 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
59 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000060
61install:
Andy Polyakov81a86fc2005-05-15 22:23:26 +000062 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
Richard Levittea2ac4292004-11-02 23:55:01 +000063 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000064 do \
Bodo Möllere5f30451999-04-29 21:52:08 +000065 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
66 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000067 done;
68
69tags:
70 ctags $(SRC)
71
72tests:
73
74lint:
75 lint -DLINT $(INCLUDES) $(SRC)>fluff
76
77depend:
Andy Polyakovce92b6e2005-05-16 16:55:47 +000078 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
Richard Levitte001ab3a2002-10-09 13:25:12 +000079 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000080
81dclean:
Ulf Möller99aab161999-04-01 12:34:33 +000082 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000083 mv -f Makefile.new $(MAKEFILE)
84
85clean:
Ralf S. Engelschallbb8f3c51999-03-06 12:32:06 +000086 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000087
Ralf S. Engelschalld02b48c1998-12-21 10:52:47 +000088# DO NOT DELETE THIS LINE -- make depend depends on it.
Ben Laurie6242bb91999-03-06 14:32:48 +000089
Richard Levitted88a26c2001-02-26 10:54:08 +000090o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
Geoff Thorpe9c52d2c2004-05-17 19:26:06 +000091o_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
Richard Levitte3c97bd82004-12-13 22:57:08 +000092o_names.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
93o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
94o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
95o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
96o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
97o_names.o: o_names.c
Richard Levitte41d2a332001-02-22 14:45:02 +000098obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
Dr. Stephen Hensonfe591282008-03-22 18:52:03 +000099obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
100obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
101obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
102obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
103obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
104obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
106obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h
Richard Levitted88a26c2001-02-26 10:54:08 +0000107obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
Geoff Thorpe9c52d2c2004-05-17 19:26:06 +0000108obj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
109obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
110obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
111obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
112obj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
113obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
114obj_err.o: obj_err.c
Richard Levitte41d2a332001-02-22 14:45:02 +0000115obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
Geoff Thorpe9c52d2c2004-05-17 19:26:06 +0000116obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
117obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
118obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
119obj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
120obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
121obj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
122obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123obj_lib.o: ../cryptlib.h obj_lib.c
Richard Levitte98bf13c2006-05-12 15:31:28 +0000124obj_xref.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
125obj_xref.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
126obj_xref.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
127obj_xref.o: ../../include/openssl/opensslconf.h
128obj_xref.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
129obj_xref.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
130obj_xref.o: ../../include/openssl/symhacks.h obj_xref.c obj_xref.h