ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/libermyth/Makefile.common.in
Revision: 1.1
Committed: Sat Sep 22 14:27:26 2007 UTC (16 years, 7 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
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: extra-build ${SRCDIR}/../libsvs${MODULE}.so
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 ${SRCDIR}/../libsvs${MODULE}.so: ${OBJS}
38 @echo " LD $@"
39 @${CXX} ${PICFLAGS} ${LDFLAGS} $+ -o $@
40
41 .PHONY: depend clean distclean
42
43 # This sed command sucks but I don't know a better way -- jilles
44 depend:
45 @echo ${OBJS} > ${SRCDIR}/.objects
46 @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${SRCS} | sed -e 's|\([^.]*\)\.o:|$(SRCDIR)/\1.o:|' > .depend
47
48 clean: extra-clean
49 @${RM} -f $(OBJS) lib${MODULE}.a
50 @${RM} -f .build.stamp
51
52 distclean: clean
53 @${RM} -f Makefile .depend
54
55 maintainer-clean: distclean
56 @${RM} -f $(MAINTAINERCLEANFILES)
57
58 extra-clean:
59
60 extra-build:
61
62 include .depend