diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2008-12-25 16:13:35 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2008-12-25 16:13:35 +0100 |
commit | e3d3ca9fd19628eebbc605b7c3ecdaf3d72998fb (patch) | |
tree | 0fc40589d8a44edd2343af89ca817b71aa5c1f2e /include | |
parent | 86f50a19e26d13d9861293b1b340dd6f9281ffb5 (diff) | |
download | wolfbones-e3d3ca9fd19628eebbc605b7c3ecdaf3d72998fb.tar.gz wolfbones-e3d3ca9fd19628eebbc605b7c3ecdaf3d72998fb.tar.bz2 |
added simple install mechanism
Diffstat (limited to 'include')
-rw-r--r-- | include/GNUmakefile | 50 | ||||
-rw-r--r-- | include/wolf/daemon/daemon.h (renamed from include/daemon/daemon.h) | 0 | ||||
-rw-r--r-- | include/wolf/daemon/signals.h (renamed from include/daemon/signals.h) | 0 | ||||
-rw-r--r-- | include/wolf/errors.h (renamed from include/errors.h) | 0 | ||||
-rw-r--r-- | include/wolf/log.h (renamed from include/log.h) | 0 | ||||
-rw-r--r-- | include/wolf/port/stdbool.h (renamed from include/port/stdbool.h) | 0 | ||||
-rw-r--r-- | include/wolf/port/sys.h (renamed from include/port/sys.h) | 0 | ||||
-rw-r--r-- | include/wolf/port/unused.h (renamed from include/port/unused.h) | 0 |
8 files changed, 50 insertions, 0 deletions
diff --git a/include/GNUmakefile b/include/GNUmakefile new file mode 100644 index 0000000..d48732e --- /dev/null +++ b/include/GNUmakefile @@ -0,0 +1,50 @@ +TOPDIR = .. + +SUBDIRS = + +INCLUDE_DIRS = -I$(TOPDIR)/include -I. + +BINS = + +LIBS = libwolf.a + +PORT_OBJS = \ + port/lockf.o \ + port/snprintf.o + +COMMON_OBJS = \ + log.o + +DAEMON_OBJS = \ + daemon/signals.o \ + daemon/pidfile.o \ + daemon/daemon.o + +OBJS = \ + $(PORT_OBJS) \ + $(COMMON_OBJS) \ + $(DAEMON_OBJS) + +local_all: $(LIBS) + +-include $(TOPDIR)/makefiles/sub.mk + +libwolf.a: $(OBJS) + $(AR) cr $@ $? + +local_clean: + -@rm port/*.bak 2>/dev/null + -@rm port/*~ 2>/dev/null + -@rm port/*.d 2>/dev/null + -@rm libwolf.a 2>/dev/null + +local_distclean: + -@rm libwolf.a + +local_install: + $(INSTALL) -d -m 755 $(includedir)/wolf + $(INSTALL) -m 644 wolf/*.h $(includedir)/wolf + $(INSTALL) -d -m 755 $(includedir)/wolf/daemon + $(INSTALL) -m 644 wolf/daemon/*.h $(includedir)/wolf/daemon + $(INSTALL) -d -m 755 $(includedir)/wolf/port + $(INSTALL) -m 644 wolf/port/*.h $(includedir)/wolf/port diff --git a/include/daemon/daemon.h b/include/wolf/daemon/daemon.h index 1359e6e..1359e6e 100644 --- a/include/daemon/daemon.h +++ b/include/wolf/daemon/daemon.h diff --git a/include/daemon/signals.h b/include/wolf/daemon/signals.h index 46124a8..46124a8 100644 --- a/include/daemon/signals.h +++ b/include/wolf/daemon/signals.h diff --git a/include/errors.h b/include/wolf/errors.h index ed5ef82..ed5ef82 100644 --- a/include/errors.h +++ b/include/wolf/errors.h diff --git a/include/log.h b/include/wolf/log.h index 7e18c5f..7e18c5f 100644 --- a/include/log.h +++ b/include/wolf/log.h diff --git a/include/port/stdbool.h b/include/wolf/port/stdbool.h index 015465c..015465c 100644 --- a/include/port/stdbool.h +++ b/include/wolf/port/stdbool.h diff --git a/include/port/sys.h b/include/wolf/port/sys.h index f13ca19..f13ca19 100644 --- a/include/port/sys.h +++ b/include/wolf/port/sys.h diff --git a/include/port/unused.h b/include/wolf/port/unused.h index 7bf61a1..7bf61a1 100644 --- a/include/port/unused.h +++ b/include/wolf/port/unused.h |