1162911Ssimon#
2162911Ssimon# crypto/camellia/Makefile
3162911Ssimon#
4162911Ssimon
5162911SsimonDIR= camellia
6162911SsimonTOP=	../..
7162911SsimonCC=	cc
8162911SsimonCPP=	$(CC) -E
9162911SsimonINCLUDES=
10162911SsimonCFLAG=-g
11162911SsimonMAKEFILE=	Makefile
12162911SsimonAR=		ar r
13162911Ssimon
14162911SsimonCAMELLIA_ASM_OBJ=
15162911Ssimon
16162911SsimonCFLAGS= $(INCLUDES) $(CFLAG)
17162911SsimonASFLAGS= $(INCLUDES) $(ASFLAG)
18162911SsimonAFLAGS= $(ASFLAGS)
19162911Ssimon
20162911SsimonGENERAL=Makefile
21162911Ssimon#TEST=camelliatest.c
22162911SsimonAPPS=
23162911Ssimon
24162911SsimonLIB=$(TOP)/libcrypto.a
25162911SsimonLIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
26162911Ssimon	   cmll_cfb.c cmll_ctr.c 
27162911Ssimon
28162911SsimonLIBOBJ= camellia.o cmll_misc.o cmll_ecb.o cmll_cbc.o cmll_ofb.o \
29162911Ssimon		cmll_cfb.o cmll_ctr.o $(CAMELLIA_ASM_OBJ)
30162911Ssimon
31162911SsimonSRC= $(LIBSRC)
32162911Ssimon
33162911SsimonEXHEADER= camellia.h
34162911SsimonHEADER= cmll_locl.h $(EXHEADER)
35162911Ssimon
36162911SsimonALL=    $(GENERAL) $(SRC) $(HEADER)
37162911Ssimon
38162911Ssimontop:
39162911Ssimon	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40162911Ssimon
41162911Ssimonall:	lib
42162911Ssimon
43162911Ssimonlib:	$(LIBOBJ)
44194206Ssimon	$(ARX) $(LIB) $(LIBOBJ)
45162911Ssimon	$(RANLIB) $(LIB) || echo Never mind.
46162911Ssimon	@touch lib
47162911Ssimon
48162911Ssimon$(LIBOBJ): $(LIBSRC)
49162911Ssimon
50162911Ssimon
51162911Ssimonfiles:
52162911Ssimon	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
53162911Ssimon
54162911Ssimonlinks:
55162911Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
56162911Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
57162911Ssimon	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
58162911Ssimon
59162911Ssimoninstall:
60162911Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
61162911Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
62162911Ssimon	do  \
63162911Ssimon	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64162911Ssimon	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65162911Ssimon	done;
66162911Ssimon
67162911Ssimontags:
68162911Ssimon	ctags $(SRC)
69162911Ssimon
70162911Ssimontests:
71162911Ssimon
72162911Ssimonlint:
73162911Ssimon	lint -DLINT $(INCLUDES) $(SRC)>fluff
74162911Ssimon
75162911Ssimondepend:
76162911Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
77162911Ssimon	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
78162911Ssimon
79162911Ssimondclean:
80162911Ssimon	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81162911Ssimon	mv -f Makefile.new $(MAKEFILE)
82162911Ssimon
83162911Ssimonclean:
84162911Ssimon	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85162911Ssimon
86162911Ssimon# DO NOT DELETE THIS LINE -- make depend depends on it.
87162911Ssimon
88167612Ssimoncamellia.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
89167612Ssimoncamellia.o: camellia.c camellia.h cmll_locl.h
90167612Ssimoncmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
91162911Ssimoncmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c cmll_locl.h
92162911Ssimoncmll_cfb.o: ../../e_os.h ../../include/openssl/camellia.h
93162911Ssimoncmll_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
94162911Ssimoncmll_cfb.o: cmll_cfb.c cmll_locl.h
95167612Ssimoncmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
96162911Ssimoncmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c cmll_locl.h
97167612Ssimoncmll_ecb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
98162911Ssimoncmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h
99205128Ssimoncmll_misc.o: ../../include/openssl/camellia.h ../../include/openssl/crypto.h
100205128Ssimoncmll_misc.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
101162911Ssimoncmll_misc.o: ../../include/openssl/opensslconf.h
102205128Ssimoncmll_misc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
103205128Ssimoncmll_misc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
104205128Ssimoncmll_misc.o: ../../include/openssl/symhacks.h cmll_locl.h cmll_misc.c
105167612Ssimoncmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
106162911Ssimoncmll_ofb.o: ../../include/openssl/opensslconf.h cmll_locl.h cmll_ofb.c
107