ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/modules/Makefile.common.in
Revision: 1.4
Committed: Sat Sep 22 14:27:26 2007 UTC (16 years, 7 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +7 -3 lines
Log Message:
split up ermyth into ermyth-modules, libermyth (currently just ermyth-util) and ermyth-core

File Contents

# Content
1 # Makefile.common.in: Common rules for module Makefiles.
2 #
3 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 # Rights to this code are as documented in COPYING.
5 #
6 #
7 # Portions of this file were derived from sources bearing the following license:
8 # Copyright © 2005 Atheme Development Group.
9 # Rights to this code are documented in doc/pod/license.pod.
10 #
11 # $Id: Makefile.common.in,v 1.3 2007-08-28 17:08:07 pippijn Exp $
12 #
13
14 default: all
15
16 SRCS = ${BASE_SRCS}
17
18 OBJS = ${SRCS:.C=.o}
19
20 all: build
21
22 .build.stamp:
23 @${MAKE} ${SILENT} build
24 @touch .build.stamp
25
26 build: $(OBJS) extra-build
27 @touch .build.stamp
28
29 install:
30
31 .SUFFIXES: .o .xs
32
33 .C.o:
34 @echo " CC $@"
35 @${CXX} -c ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} $< -o $@
36
37 .PHONY: depend clean distclean
38
39 # This sed command sucks but I don't know a better way -- jilles
40 depend:
41 @echo ${OBJS} > ${SRCDIR}/.objects
42 @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${SRCS} | sed -e 's|\([^.]*\)\.o:|$(SRCDIR)/\1.o:|' > .depend
43
44 clean: extra-clean
45 @${RM} -f $(OBJS) lib${MODULE}.a
46 @${RM} -f .build.stamp
47
48 distclean: clean
49 @${RM} -f Makefile .depend
50
51 maintainer-clean: distclean
52 @${RM} -f $(MAINTAINERCLEANFILES)
53
54 extra-clean:
55
56 extra-build:
57
58 include .depend