Home | History | Annotate | Download | only in poly1305
      1 #
      2 # OpenSSL/crypto/poly1305/Makefile
      3 #
      4 
      5 DIR=	poly1305
      6 TOP=	../..
      7 CC=	cc
      8 CPP=    $(CC) -E
      9 INCLUDES=
     10 CFLAG=-g
     11 AR=		ar r
     12 
     13 POLY1305=poly1305_vec.o
     14 
     15 CFLAGS= $(INCLUDES) $(CFLAG)
     16 ASFLAGS= $(INCLUDES) $(ASFLAG)
     17 AFLAGS= $(ASFLAGS)
     18 
     19 GENERAL=Makefile
     20 TEST=
     21 APPS=
     22 
     23 LIB=$(TOP)/libcrypto.a
     24 LIBSRC=poly1305_vec.c
     25 LIBOBJ=$(POLY1305)
     26 
     27 SRC= $(LIBSRC)
     28 
     29 EXHEADER=poly1305.h
     30 HEADER=	$(EXHEADER)
     31 
     32 ALL=    $(GENERAL) $(SRC) $(HEADER)
     33 
     34 top:
     35 	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
     36 
     37 all:	lib
     38 
     39 lib:	$(LIBOBJ)
     40 	$(AR) $(LIB) $(LIBOBJ)
     41 	$(RANLIB) $(LIB) || echo Never mind.
     42 	@touch lib
     43 
     44 files:
     45 	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
     46 
     47 links:
     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 
     52 install:
     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 
     60 tags:
     61 	ctags $(SRC)
     62 
     63 tests:
     64 
     65 lint:
     66 	lint -DLINT $(INCLUDES) $(SRC)>fluff
     67 
     68 depend:
     69 	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
     70 	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
     71 
     72 dclean:
     73 	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
     74 	mv -f Makefile.new $(MAKEFILE)
     75 
     76 clean:
     77 	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
     78 
     79 # DO NOT DELETE THIS LINE -- make depend depends on it.
     80 
     81 poly1305_vec.o: ../../include/openssl/poly1305.h poly1305_vec.c
     82