1183234Ssimon#
2183234Ssimon# crypto/seed/Makefile
3183234Ssimon#
4183234Ssimon
5183234SsimonDIR=	seed
6183234SsimonTOP=	../..
7183234SsimonCC=	cc
8183234SsimonCPP=	$(CC) -E
9183234SsimonINCLUDES=
10183234SsimonCFLAG=-g
11183234SsimonMAKEFILE=	Makefile
12183234SsimonAR=		ar r
13183234Ssimon
14183234SsimonCFLAGS= $(INCLUDES) $(CFLAG)
15183234Ssimon
16183234SsimonGENERAL=Makefile
17183234SsimonTEST=
18183234SsimonAPPS=
19183234Ssimon
20183234SsimonLIB=$(TOP)/libcrypto.a
21183234SsimonLIBSRC=seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c
22183234SsimonLIBOBJ=seed.o seed_ecb.o seed_cbc.o seed_cfb.o seed_ofb.o
23183234Ssimon
24183234SsimonSRC= $(LIBSRC)
25183234Ssimon
26183234SsimonEXHEADER= seed.h
27183234SsimonHEADER= seed_locl.h $(EXHEADER)
28183234Ssimon
29183234SsimonALL=    $(GENERAL) $(SRC) $(HEADER)
30183234Ssimon
31183234Ssimontop:
32183234Ssimon	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33183234Ssimon
34183234Ssimonall:	lib
35183234Ssimon
36183234Ssimonlib:	$(LIBOBJ)
37238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
38183234Ssimon	$(RANLIB) $(LIB) || echo Never mind.
39183234Ssimon	@touch lib
40183234Ssimon
41183234Ssimonfiles:
42183234Ssimon	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
43183234Ssimon
44183234Ssimonlinks:
45183234Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
46183234Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
47183234Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
48183234Ssimon
49183234Ssimoninstall:
50183234Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
51183234Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
52183234Ssimon	do  \
53183234Ssimon	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
54183234Ssimon	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
55183234Ssimon	done;
56183234Ssimon
57183234Ssimontags:
58183234Ssimon	ctags $(SRC)
59183234Ssimon
60183234Ssimontests:
61183234Ssimon
62183234Ssimonlint:
63183234Ssimon	lint -DLINT $(INCLUDES) $(SRC)>fluff
64183234Ssimon
65183234Ssimondepend:
66183234Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
67183234Ssimon	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
68183234Ssimon
69183234Ssimondclean:
70183234Ssimon	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
71183234Ssimon	mv -f Makefile.new $(MAKEFILE)
72183234Ssimon
73183234Ssimonclean:
74183234Ssimon	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
75183234Ssimon
76183234Ssimon# DO NOT DELETE THIS LINE -- make depend depends on it.
77183234Ssimon
78238405Sjkimseed.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
79238405Sjkimseed.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
80238405Sjkimseed.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
81238405Sjkimseed.o: ../../include/openssl/seed.h ../../include/openssl/stack.h
82238405Sjkimseed.o: ../../include/openssl/symhacks.h seed.c seed_locl.h
83238405Sjkimseed_cbc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
84238405Sjkimseed_cbc.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
85238405Sjkimseed_cbc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
86238405Sjkimseed_cbc.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
87238405Sjkimseed_cbc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
88238405Sjkimseed_cbc.o: seed_cbc.c
89238405Sjkimseed_cfb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
90238405Sjkimseed_cfb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
91238405Sjkimseed_cfb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
92238405Sjkimseed_cfb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
93238405Sjkimseed_cfb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
94238405Sjkimseed_cfb.o: seed_cfb.c
95238405Sjkimseed_ecb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
96238405Sjkimseed_ecb.o: ../../include/openssl/opensslconf.h
97238405Sjkimseed_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
98238405Sjkimseed_ecb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
99238405Sjkimseed_ecb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
100183234Ssimonseed_ecb.o: seed_ecb.c
101238405Sjkimseed_ofb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
102238405Sjkimseed_ofb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
103238405Sjkimseed_ofb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
104238405Sjkimseed_ofb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
105238405Sjkimseed_ofb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106238405Sjkimseed_ofb.o: seed_ofb.c
107