Makefile.in 1.2 KB
Newer Older
1
#
R
Rich Salz 已提交
2
# OpenSSL/ocsp/Makefile
3 4
#

R
Rich Salz 已提交
5
DIR=	ocsp
6 7
TOP=	../..
CC=	cc
R
Rich Salz 已提交
8
INCLUDES= -I.. -I$(TOP) -I../../include
9
CFLAG=-g
R
Rich Salz 已提交
10
MAKEFILE=	Makefile
11 12 13 14
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

R
Rich Salz 已提交
15
GENERAL=Makefile README
16 17

LIB=$(TOP)/libcrypto.a
R
Rich Salz 已提交
18 19 20 21 22
LIBSRC= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c \
	ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c v3_ocsp.c

LIBOBJ= ocsp_asn.o ocsp_ext.o ocsp_ht.o ocsp_lib.o ocsp_cl.o \
	ocsp_srv.o ocsp_prn.o ocsp_vfy.o ocsp_err.o v3_ocsp.o
23 24 25

SRC= $(LIBSRC)

R
Rich Salz 已提交
26 27
HEADER=	ocsp_lcl.h

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
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

R
Rich Salz 已提交
51
update: depend
52 53 54

depend:
	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
R
Rich Salz 已提交
55
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
56 57 58 59 60 61

dclean:
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
	mv -f Makefile.new $(MAKEFILE)

clean:
R
Rich Salz 已提交
62
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
63 64

# DO NOT DELETE THIS LINE -- make depend depends on it.