Makefile revision 296341
1DIR=jpake
2TOP=../..
3
4CFLAGS= $(INCLUDES) $(CFLAG)
5
6LIB=$(TOP)/libcrypto.a
7LIBOBJ=jpake.o jpake_err.o
8LIBSRC=jpake.c jpake_err.c
9
10EXHEADER=jpake.h
11TEST=jpaketest.c
12
13top:
14	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
15
16all:	lib
17
18lib:	$(LIBOBJ)
19	$(AR) $(LIB) $(LIBOBJ)
20	$(RANLIB) $(LIB) || echo Never mind.
21	@touch lib
22
23links:
24	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
25	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
26
27install:
28	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
29	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
30	do  \
31	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
32	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
33	done;
34
35update: depend
36
37depend:
38	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
39	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
40
41dclean:
42	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
43	mv -f Makefile.new $(MAKEFILE)
44
45clean:
46	rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
47
48jpaketest: top jpaketest.c $(LIB)
49	$(CC) $(CFLAGS) -Wall -Werror -g -o jpaketest jpaketest.c $(LIB)
50# DO NOT DELETE THIS LINE -- make depend depends on it.
51
52jpake.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
53jpake.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
54jpake.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
55jpake.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
56jpake.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
57jpake.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
58jpake.o: ../../include/openssl/symhacks.h jpake.c jpake.h
59jpake_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
60jpake_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
61jpake_err.o: ../../include/openssl/err.h ../../include/openssl/jpake.h
62jpake_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
63jpake_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
64jpake_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
65jpake_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
66jpake_err.o: jpake_err.c
67