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