1#
2# crypto/camellia/Makefile
3#
4
5DIR= camellia
6TOP=	../..
7CC=	cc
8CPP=	$(CC) -E
9INCLUDES=
10CFLAG=-g
11MAKEFILE=	Makefile
12AR=		ar r
13
14CAMELLIA_ASM_OBJ=
15
16CFLAGS= $(INCLUDES) $(CFLAG)
17ASFLAGS= $(INCLUDES) $(ASFLAG)
18AFLAGS= $(ASFLAGS)
19
20GENERAL=Makefile
21#TEST=camelliatest.c
22APPS=
23
24LIB=$(TOP)/libcrypto.a
25LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
26	   cmll_cfb.c cmll_ctr.c 
27
28LIBOBJ= camellia.o cmll_misc.o cmll_ecb.o cmll_cbc.o cmll_ofb.o \
29		cmll_cfb.o cmll_ctr.o $(CAMELLIA_ASM_OBJ)
30
31SRC= $(LIBSRC)
32
33EXHEADER= camellia.h
34HEADER= cmll_locl.h $(EXHEADER)
35
36ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38top:
39	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41all:	lib
42
43lib:	$(LIBOBJ)
44	$(ARX) $(LIB) $(LIBOBJ)
45	$(RANLIB) $(LIB) || echo Never mind.
46	@touch lib
47
48$(LIBOBJ): $(LIBSRC)
49
50
51files:
52	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
53
54links:
55	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
56	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
57	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
58
59install:
60	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
61	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
62	do  \
63	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65	done;
66
67tags:
68	ctags $(SRC)
69
70tests:
71
72lint:
73	lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75depend:
76	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
77	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
78
79dclean:
80	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81	mv -f Makefile.new $(MAKEFILE)
82
83clean:
84	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85
86# DO NOT DELETE THIS LINE -- make depend depends on it.
87
88camellia.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
89camellia.o: camellia.c camellia.h cmll_locl.h
90cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
91cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c cmll_locl.h
92cmll_cfb.o: ../../e_os.h ../../include/openssl/camellia.h
93cmll_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
94cmll_cfb.o: cmll_cfb.c cmll_locl.h
95cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
96cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c cmll_locl.h
97cmll_ecb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
98cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h
99cmll_misc.o: ../../include/openssl/camellia.h ../../include/openssl/crypto.h
100cmll_misc.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
101cmll_misc.o: ../../include/openssl/opensslconf.h
102cmll_misc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
103cmll_misc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
104cmll_misc.o: ../../include/openssl/symhacks.h cmll_locl.h cmll_misc.c
105cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
106cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_locl.h cmll_ofb.c
107