mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
##---------------------------------------------------------------------------
|
|
##
|
|
## Makefile Template for Libraries
|
|
##
|
|
|
|
all-common: $(LIBRARY) $(PROGRAMS)
|
|
|
|
$(LIBRARY): version.o
|
|
$(AR) ru $@ $(OBJS) version.o
|
|
@$(RANLIB) $@; \
|
|
$(RM) ../$@; \
|
|
(d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
|
|
|
|
version.c: $(OBJS) $(srcdir)/Version.c
|
|
$(RM) $@
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
|
|
h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
-e "s|%VERSION%|$${v}|" \
|
|
< $(srcdir)/Version.c > $@)
|
|
|
|
install-common: all-common install-local
|
|
|
|
lint: lint-local FORCE
|
|
$(LINT) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
lint5: lint5-local FORCE
|
|
$(5LINT) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
clean-common: clean-local
|
|
$(RM) $(LIBRARY) ../$(LIBRARY) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
|
|
*.o a.out core version.c
|
|
|
|
depend-common: depend-local
|
|
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
veryclean-common: veryclean-local clean-common
|
|
|
|
lint-local: FORCE
|
|
lint5-local: FORCE
|
|
|
|
Makefile: $(top_srcdir)/build/lib.mk
|