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