1998-10-25 09:41:42 +08:00
|
|
|
##---------------------------------------------------------------------------
|
|
|
|
##
|
|
|
|
## Makefile Template for Libraries
|
|
|
|
##
|
|
|
|
|
|
|
|
all-common: $(LIBRARY) $(PROGRAMS)
|
|
|
|
|
|
|
|
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 > $@)
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
install-common: FORCE
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
lint: lint-local FORCE
|
|
|
|
$(LINT) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
|
|
|
|
lint5: lint5-local FORCE
|
|
|
|
$(5LINT) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
clean-common: FORCE
|
1998-12-19 09:27:20 +08:00
|
|
|
$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
|
|
|
|
$(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
|
1998-11-22 14:24:59 +08:00
|
|
|
*.o *.lo a.out core version.c .libs/*
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
depend-common: FORCE
|
1998-10-25 09:41:42 +08:00
|
|
|
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
|
|
|
|
lint-local: FORCE
|
|
|
|
lint5-local: FORCE
|
|
|
|
|
|
|
|
Makefile: $(top_srcdir)/build/lib.mk
|