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/core/Makefile | |
| 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/core/Makefile')
| -rw-r--r-- | src/core/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/Makefile b/src/core/Makefile index f4df49581..25aac058d 100644 --- a/src/core/Makefile +++ b/src/core/Makefile @@ -9,6 +9,7 @@ MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \ 'MODULEFLAGS=${MODULEFLAGS}' 'MAKEBIN=${MAKEBIN}' OBJECTS= $(SRCS:.c=.o) +OBJECTS+= $(SRCS:.cpp=.o) SO_FILES=$(OBJECTS:.o=.s) CDEFS= -rdynamic -Wall @@ -24,6 +25,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 @@ -42,5 +46,5 @@ clean: subs_clean rm -f *.o *.s *.so *.c~ core spotless: subs_clean - rm -f *.o *.s *.so *.c~ core Makefile.inc + rm -f *.o *.s *.so *.c~ core *.so Makefile.inc |
