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