1 ##---------------------------------------------------------------------------
3 ## Makefile Template for Libraries
6 all-common: $(LIBRARY) $(PROGRAMS)
9 $(AR) ru $@ $(OBJS) version.o
12 (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
14 version.c: $(OBJS) $(srcdir)/Version.c
16 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
17 h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
18 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
19 -e "s|%VERSION%|$${v}|" \
20 < $(srcdir)/Version.c > $@)
22 install-common: all-common install-local
24 lint: lint-local FORCE
25 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
27 lint5: lint5-local FORCE
28 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
30 clean-common: clean-local
31 $(RM) $(LIBRARY) ../$(LIBRARY) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
32 *.o a.out core version.c
34 depend-common: depend-local
35 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
37 veryclean-common: veryclean-local clean-common
42 Makefile: $(top_srcdir)/build/lib.mk