summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--Makefile.in13
-rw-r--r--src/modules/Makefile11
-rw-r--r--version.log6
4 files changed, 26 insertions, 5 deletions
diff --git a/Changes b/Changes
index 443d41290..644fae65c 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
Anope Version 1.7.7
-------------------
Provided by Anope Dev. <dev@anope.org> - 2004/2005
+01/12 A Added make profile to allow for gprof profileing of anope. [ #00]
12/30 A Warnings for NULL values with sstrdup/moduleData. [#261]
12/26 A Services can enforce SGLINE/SQLINE by killing the user on set. [#245]
12/25 A Flag to tell if we need to enforce SGlines or not. [ #00]
diff --git a/Makefile.in b/Makefile.in
index 73b25df79..7c6d76330 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3,6 +3,8 @@ INCLUDEDIR=../include
ANOPELIBS=@ANOPELIBS@
CFLAGS=@CFLAGS@
STRICT=-Wall -ansi -pedantic
+PROFILE=-pg
+LDPROFILE=
SHELL=/bin/sh
SUBDIRS=src
BINDEST=@BINDEST@
@@ -20,6 +22,7 @@ IRCDFILE=@IRCDFILE@
all: language headers build modules
strict: language headers strict_build strict_modules
+profile: language headers profile_build profile_modules
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
@@ -40,6 +43,12 @@ strict_build:
( cd $$i; ${MAKE} ${MAKEARGS} 'CFLAGS=${CFLAGS} $(STRICT)' all; ) \
done
+profile_build:
+ @for i in $(SUBDIRS); do \
+ echo "*** Strict Building $$i";\
+ ( cd $$i; ${MAKE} ${MAKEARGS} 'CFLAGS=${CFLAGS} $(PROFILE)' 'LDFLAGS=${LDFLAGS} ${PROFILE}' all; ) \
+ done
+
modules: build
(cd src/modules ; ./configure ; ${MAKE} ${MAKEARGS} all; )
@echo "*** All done, now (g)make install to install Anope/Modules";
@@ -48,6 +57,10 @@ strict_modules: strict_build
(cd src/modules ; ./configure ; ${MAKE} ${MAKEARGS} 'CFLAGS=$(CFLAGS) $(STRICT)' all; )
@echo "*** All done, now (g)make install to install Anope/Modules";
+profile_modules: profile_build
+ (cd src/modules ; ./configure ; ${MAKE} ${MAKEARGS} 'CFLAGS=${CFLAGS} ${PROFILE}' 'PROFILE=${PROFILE}' all; )
+ @echo "*** All done, now (g)make install to install Anope/Modules";
+
language:
(cd lang ; $(MAKE) ${MAKEARGS} all language.h ; cp language.h ../include/)
diff --git a/src/modules/Makefile b/src/modules/Makefile
index adb331238..66bf442a1 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -4,16 +4,19 @@ MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
- 'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}'
+ 'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}' \
+ 'PROFILE=${PROFILE}'
OBJECTS= $(SRCS:.c=.o)
SO_FILES=$(OBJECTS:.o=.s)
CDEFS= -g -rdynamic -Wall
CFLAGS=$(CFLAGS) $(CDEFS)
-all: $(OBJECTS)
+all: modules
-install: $(SO_FILES)
+modules: $(OBJECTS) $(SO_FILES)
+
+install:
$(CP) ./*.so $(MODULE_PATH)
distclean: clean spotless
@@ -22,7 +25,7 @@ distclean: clean spotless
$(CC) $(CFLAGS) -I../${INCLUDEDIR} -c $<
.o.s:
- ld -shared $< -o $*.so
+ $(CC) -shared $< -o $*.so ${PROFILE}
clean:
rm -f *.o *.so *.c~ core
diff --git a/version.log b/version.log
index f184cc1f3..540fd8021 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="7"
-VERSION_BUILD="532"
+VERSION_BUILD="533"
# $Log$
#
+# BUILD : 1.7.7 (533)
+# BUGS : N/A
+# NOTES : Added make profile to allow for gprof profiling
+#
# BUILD : 1.7.7 (532)
# NOTES : Updated es.l by DrStein
#