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 (18 years, 11 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

# User Rev Content
1 pippijn 1.4 # Makefile.common.in: Common rules for module Makefiles.
2     #
3 pippijn 1.3 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 pippijn 1.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 pippijn 1.1 # Copyright © 2005 Atheme Development Group.
9 pippijn 1.2 # Rights to this code are documented in doc/pod/license.pod.
10 pippijn 1.1 #
11 pippijn 1.4 # $Id: Makefile.common.in,v 1.3 2007-08-28 17:08:07 pippijn Exp $
12 pippijn 1.1 #
13    
14     default: all
15    
16     SRCS = ${BASE_SRCS}
17    
18 pippijn 1.3 OBJS = ${SRCS:.C=.o}
19 pippijn 1.1
20     all: build
21    
22     .build.stamp:
23     @${MAKE} ${SILENT} build
24     @touch .build.stamp
25    
26 pippijn 1.3 build: $(OBJS) extra-build
27     @touch .build.stamp
28 pippijn 1.1
29 pippijn 1.3 install:
30 pippijn 1.1
31 pippijn 1.3 .SUFFIXES: .o .xs
32 pippijn 1.1
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 pippijn 1.3 @echo ${OBJS} > ${SRCDIR}/.objects
42     @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${SRCS} | sed -e 's|\([^.]*\)\.o:|$(SRCDIR)/\1.o:|' > .depend
43 pippijn 1.1
44     clean: extra-clean
45 pippijn 1.3 @${RM} -f $(OBJS) lib${MODULE}.a
46 pippijn 1.1 @${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 pippijn 1.3 extra-build:
57 pippijn 1.1
58     include .depend