platform specific CFLAGS don't belong into this Makefile
[openssl.git] / crypto / rijndael / Makefile.ssl
1 #
2 # SSLeay/crypto/blowfish/Makefile
3 #
4
5 DIR=    rijndael
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 INSTALL_PREFIX=
12 OPENSSLDIR=     /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE=           make -f Makefile.ssl
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 RD_ENC=         rd_enc.o
20 # or use
21 #DES_ENC=       bx86-elf.o
22
23 # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr
24 CFLAGS= $(INCLUDES) $(CFLAG)
25
26 GENERAL=Makefile
27 TEST=
28 APPS=
29
30 LIB=$(TOP)/libcrypto.a
31 LIBSRC=rd_fst.c
32 LIBOBJ=rd_fst.o
33
34 SRC= $(LIBSRC)
35
36 EXHEADER=rd_fst.h rijndael.h
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 all:    lib
42
43 lib:    $(LIBOBJ)
44         $(AR) $(LIB) $(LIBOBJ)
45         $(RANLIB) $(LIB)
46         @touch lib
47
48 $(LIBOBJ): $(LIBSRC)
49
50 files:
51         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
52
53 links:
54         @$(TOP)/util/point.sh Makefile.ssl Makefile
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
59 install: installs
60
61 installs:
62         @for i in $(EXHEADER) ; \
63         do  \
64         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
65         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
66         done;
67
68 tags:
69         ctags $(SRC)
70
71 tests:
72
73 lint:
74         lint -DLINT $(INCLUDES) $(SRC)>fluff
75
76 depend:
77         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
78
79 dclean:
80         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81         mv -f Makefile.new $(MAKEFILE)
82
83 clean:
84         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85
86 # DO NOT DELETE THIS LINE
87
88 rd_fst.o: rd_fst.h