66 lines
1.1 KiB
Makefile
66 lines
1.1 KiB
Makefile
|
#
|
||
|
# OpenSSL/crypto/poly1305/Makefile
|
||
|
#
|
||
|
|
||
|
DIR= poly1305
|
||
|
TOP= ../..
|
||
|
CC= cc
|
||
|
CPP= $(CC) -E
|
||
|
INCLUDES=
|
||
|
CFLAG=-g
|
||
|
AR= ar r
|
||
|
|
||
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
||
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
||
|
AFLAGS= $(ASFLAGS)
|
||
|
|
||
|
GENERAL=Makefile
|
||
|
TEST=
|
||
|
APPS=
|
||
|
|
||
|
LIB=$(TOP)/libcrypto.a
|
||
|
LIBSRC=poly1305.c
|
||
|
LIBOBJ=poly1305.o
|
||
|
|
||
|
SRC= $(LIBSRC)
|
||
|
|
||
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
||
|
|
||
|
top:
|
||
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
||
|
|
||
|
all: lib
|
||
|
|
||
|
lib: $(LIBOBJ)
|
||
|
$(AR) $(LIB) $(LIBOBJ)
|
||
|
$(RANLIB) $(LIB) || echo Never mind.
|
||
|
@touch lib
|
||
|
|
||
|
files:
|
||
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
||
|
|
||
|
tags:
|
||
|
ctags $(SRC)
|
||
|
|
||
|
tests:
|
||
|
|
||
|
lint:
|
||
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||
|
|
||
|
update: depend
|
||
|
|
||
|
depend:
|
||
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
||
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||
|
|
||
|
dclean:
|
||
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||
|
mv -f Makefile.new $(MAKEFILE)
|
||
|
|
||
|
clean:
|
||
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
||
|
|
||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||
|
|
||
|
poly1305.o: ../include/internal/poly1305.h poly1305.c
|