summaryrefslogtreecommitdiff
path: root/src/modules/Makefile
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-08 19:05:35 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-08 19:05:35 +0000
commit92f744e4216e9e48247891fb73c8fb9e42419f4c (patch)
tree2f9f6f96aede55c83f46f5e2a2e0da2152f98b1b /src/modules/Makefile
parent1aba1eb3ea635756a44c4221b22b688ccd2ec9ab (diff)
Fixed Autotools to detect *.cpp files in the src/core and src/modules folders.
Also small fix to the Windows install.js call to CMake to include quotes around the source's path. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1949 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/Makefile')
-rw-r--r--src/modules/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index c964439a8..b75071a75 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -9,6 +9,7 @@ MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
'MAKEBIN=${MAKEBIN}'
OBJECTS= $(SRCS:.c=.o)
+OBJECTS+= $(SRCS:.cpp=.o)
SO_FILES=$(OBJECTS:.o=.s)
CDEFS= -rdynamic -Wall
@@ -27,6 +28,9 @@ distclean: spotless
.c.o:
@$(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../${INCLUDEDIR} -c $<
+.cpp.o:
+ @$(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../${INCLUDEDIR} -c $<
+
.o.s:
@$(MAKEBIN) $(CC) ${SHARED} ../mod_version.o $< -o $*.so ${PROFILE}
@$(TOUCH) $*.s