diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-08 19:05:35 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-08 19:05:35 +0000 |
| commit | 92f744e4216e9e48247891fb73c8fb9e42419f4c (patch) | |
| tree | 2f9f6f96aede55c83f46f5e2a2e0da2152f98b1b /src/modules | |
| parent | 1aba1eb3ea635756a44c4221b22b688ccd2ec9ab (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')
| -rw-r--r-- | src/modules/Makefile | 4 | ||||
| -rwxr-xr-x | src/modules/configure | 2 |
2 files changed, 5 insertions, 1 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 diff --git a/src/modules/configure b/src/modules/configure index 53a745592..453ba7de5 100755 --- a/src/modules/configure +++ b/src/modules/configure @@ -26,7 +26,7 @@ export ECHO2 ECHO2SUF echo2 "SRCS=" > ./Makefile.inc FIRST=1 -for oldfile in *.c +for oldfile in `ls -1 *.c *.cpp` do if [ "$FIRST" = 1 ] ; then echo2 " "$oldfile >> ./Makefile.inc |
