lib.mk 1.36 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
# $OpenLDAP$
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
4
## Copyright 1998-2021 The OpenLDAP Foundation.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
5
## All rights reserved.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
6
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
7
8
9
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
10
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11
12
13
14
15
16
17
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
##---------------------------------------------------------------------------
#
# Makefile Template for Libraries
#
Kurt Zeilenga's avatar
Kurt Zeilenga committed
18
19
20

all-common: $(LIBRARY) $(PROGRAMS)

Howard Chu's avatar
Howard Chu committed
21
version.c: Makefile
Kurt Zeilenga's avatar
Kurt Zeilenga committed
22
	$(RM) $@
23
	$(MKVERSION) $(LIBRARY) > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
24

Howard Chu's avatar
Howard Chu committed
25
version.o version.lo: version.c $(OBJS)
Howard Chu's avatar
Howard Chu committed
26

27
install-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
28
29
30
31
32
33
34

lint: lint-local FORCE
	$(LINT) $(DEFS) $(DEFINES) $(SRCS)

lint5: lint5-local FORCE
	$(5LINT) $(DEFS) $(DEFINES) $(SRCS)

Howard Chu's avatar
Howard Chu committed
35
36
37
38
39
#
# In the mingw/cygwin environment, the so and dll files must be
# deleted separately, instead of using the {.so*,*.dll} construct
# that was previously used. It just didn't work.
#
40
clean-common: 	FORCE
41
	$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
42
		$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
43
		*.o *.lo a.out *.exe *.pc core version.c .libs/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
44

45
depend-common: FORCE
46
	$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
47
48
49
50
51

lint-local: FORCE
lint5-local: FORCE

Makefile: $(top_srcdir)/build/lib.mk
Howard Chu's avatar
Howard Chu committed
52