summaryrefslogtreecommitdiff
path: root/docs/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2008-12-22 21:52:42 +0100
committerAndreas Baumann <abaumann@yahoo.com>2008-12-22 21:52:42 +0100
commitd5b3cedebd27264feb478463913088af2793d77f (patch)
tree139ebd41af872e87a6d84f829c1f14d83bd94adb /docs/GNUmakefile
parent4252afaea748fc58dbac98da16743ca4e6a4b58e (diff)
downloadwolfbones-d5b3cedebd27264feb478463913088af2793d77f.tar.gz
wolfbones-d5b3cedebd27264feb478463913088af2793d77f.tar.bz2
fixed 'doc' target, generating doxygen documentation
Diffstat (limited to 'docs/GNUmakefile')
-rw-r--r--docs/GNUmakefile71
1 files changed, 7 insertions, 64 deletions
diff --git a/docs/GNUmakefile b/docs/GNUmakefile
index f1b80aa..4ab049c 100644
--- a/docs/GNUmakefile
+++ b/docs/GNUmakefile
@@ -1,68 +1,11 @@
-.PHONY: all clean
+TOPDIR = ..
-BINS = \
- testd
+SUBDIRS =
-all: $(BINS)
+-include $(TOPDIR)/makefiles/sub.mk
-PLATFORM = $(shell makefiles/guess_env --platform)
-OS_MAJOR_VERSION = $(shell makefiles/guess_env --os-major-version)
-OS_MINOR_VERSION = $(shell makefiles/guess_env --os-minor-version)
+doc:
+ cd $(TOPDIR); doxygen docs/doxygen.conf
-COMPILE_FLAGS = -g -O2 -D_REENTRANT -Wall -W -Werror -std=c99 -pedantic -I.
-LDFLAGS =
-LIBS =
-
-CFLAGS = $(COMPILE_FLAGS) -D$(PLATFORM) -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) -DOS_MINOR_VERSION=$(OS_MINOR_VERSION)
-CC = gcc
-MAKEDEPEND = $(CC) -MM
-
-OBJS = \
- port/snprintf.o \
- port/lockf.o \
- cmdline.o \
- log.o \
- signals.o \
- pidfile.o \
- daemon.o \
- testd.o
-
-# ABa: currently a special rule for cmdline.c as gengetopt is not
-# completly fixed yet
-cmdline.c : daemon.ggo
- gengetopt --include-getopt -i $<
-
-cmdline.o : cmdline.c
- $(CC) -c -o $@ $<
-
-%.o : %.c
- $(CC) -c -o $@ $(CFLAGS) $<
-
-testd : $(OBJS)
- $(CC) -o $@ $(LDFLAGS) $(LIBS) $^
-
-clean:
- -@rm *.bak port/*.bak 2>/dev/null
- -@rm *~ port/*~ 2>/dev/null
- -@rm *.d port/*.d 2>/dev/null
- -@rm $(BINS) *.exe 2>/dev/null
- -@rm $(OBJS) 2>/dev/null
-
-distclean: clean
- -@rm cmdline.c cmdline.h
-
-%.d : %.c
- @$(MAKEDEPEND) $(CFLAGS) $< 2>/dev/null | \
- sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)___\1 : \2,g" | tr -s "_" "\n" > $@
-
--include $(OBJS:.o=.d)
-
-test: all
- @fakeroot ./testd -d --pidfile /tmp/testd.pid && \
- sleep 3 && \
- ls -altr /tmp/testd* && \
- cat /tmp/testd.pid
- -@ps -alef | grep test | grep -v grep
- @sleep 1
- @pkill testd
- -@ls -altr /tmp/testd*
+local_clean:
+ -@rm -rf doxygen 2>/dev/null