summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7daa6c5)
raw | patch | inline | side by side (parent: 7daa6c5)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 10 Sep 2006 19:20:59 +0000 (19:20 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 10 Sep 2006 19:20:59 +0000 (19:20 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@891 a5681a0c-68f1-0310-ab6d-d61299d08faa
netware/Makefile | patch | blob | history | |
win32/Makefile | patch | blob | history |
diff --git a/netware/Makefile b/netware/Makefile
index d28dba1d996afb617d6457fd8e4403c3a123b3b8..a38ac708aaa178e6963c114ab4f79ad50f5bee1b 100644 (file)
--- a/netware/Makefile
+++ b/netware/Makefile
-# Gnu Makefile for NetWare target * 25-Aug-2006
+# Gnu Makefile for NetWare target * 09-Sep-2006
# for use with gcc/nlmconv or Metrowerks CodeWarrior compiler
-# use with: make -f Makefile [all|clean|dist|distclean|help]
+# use with: make -f Makefile [help|all|clean|dev|devclean|dist|distclean]
DESCR = Round Robin Database Tool $(RRD_VERSION_STR)
COPYR = Copyright (c) 1997-2006 by Tobias Oetiker
ifndef DISTDIR
DISTDIR = rrdtool-$(RRD_VERSION_STR)-nw
endif
-ARCHIVE = $(DISTDIR).zip
+DISTARC = $(DISTDIR).zip
+
+# Edit the path below to point to your distribution folder.
+ifndef DEVLDIR
+DEVLDIR = rrdtool-$(RRD_VERSION_STR)-sdk-nw
+endif
+DEVLARC = $(DEVLDIR).zip
# whatever...
# NO_NULL_REALLOC = 1
ifeq ($(findstring linux,$(OSTYPE)),linux)
#include $(NDKBASE)/nlmconv/ncpfs.inc
DL = '
+DS = /
+else
+DS = \\
endif
ifeq ($(MTSAFE),YES)
@-$(CP) $(PROOT)/COPYRIGHT $(DISTDIR)
@-$(CP) $(PROOT)/NEWS $(DISTDIR)
@-$(CP) $(PROOT)/README $(DISTDIR)
- @echo Creating $(ARCHIVE)
- @$(ZIP) $(ARCHIVE) $(DISTDIR)/* < $(DISTDIR)/readme.txt
+ @echo Creating $(DISTARC)
+ @$(ZIP) $(DISTARC) $(DISTDIR)/* < $(DISTDIR)/readme.txt
+
+dev: librrd $(DEVLDIR) $(DEVLDIR)/readme.txt
+ @-mkdir $(DEVLDIR)$(DS)include
+ @-mkdir $(DEVLDIR)$(DS)lib
+ @-mkdir $(DEVLDIR)$(DS)src
+ @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DEVLDIR)/lib
+ @-$(CP) $(PROOT)/config.h $(DEVLDIR)/include
+ @-$(CP) $(PROOT)/src/rrd.h $(DEVLDIR)/include
+ @-$(CP) $(PROOT)/src/*.ttf $(DEVLDIR)/src
+ @-$(CP) $(PROOT)/CHANGES $(DEVLDIR)
+ @-$(CP) $(PROOT)/COPYING $(DEVLDIR)
+ @-$(CP) $(PROOT)/COPYRIGHT $(DEVLDIR)
+ @-$(CP) $(PROOT)/NEWS $(DEVLDIR)
+ @-$(CP) $(PROOT)/README $(DEVLDIR)
+ @echo Creating $(DEVLARC)
+ @$(ZIP) $(DEVLARC) $(DEVLDIR)/* < $(DEVLDIR)/readme.txt
clean:
-$(RM) -r $(OBJDIR)
distclean: clean
-$(RM) -r $(DISTDIR)
- -$(RM) $(ARCHIVE)
+ -$(RM) $(DISTARC)
+
+devclean: clean
+ -$(RM) -r $(DEVLDIR)
+ -$(RM) $(DEVLARC)
$(OBJDIR):
@mkdir $@
$(DISTDIR):
@mkdir $@
-$(OBJDIR)/%.o: %.c
- @echo Compiling $<
- @$(CC) $(CFLAGS) -c $< -o $@
+$(DEVLDIR):
+ @mkdir $@
$(OBJDIR)/version.inc: $(PROOT)/configure.ac $(OBJDIR) $(PROOT)/src/get_ver.awk
@echo Creating $@
@$(AWK) -f $(PROOT)/src/get_ver.awk $< > $@
+$(OBJDIR)/%.o: %.c
+ @echo Compiling $<
+ @$(CC) $(CFLAGS) -c $< -o $@
+
$(OBJDIR)/rrdcgi.$(CGIEXT): $(OBJCGI) $(OBJDIR)/rrdcgi.def $(OBJDIR)/rrdcgi.xdc
@echo Linking $@
@-$(RM) $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
@echo $(DL)** All your changes will be lost!!$(DL) >> $@
@echo $(DL)*/$(DL) >> $@
+ @echo $(DL)#ifndef NETWARE$(DL) >> $@
+ @echo $(DL)#error This config.h is created for NetWare platform!$(DL) >> $@
+ @echo $(DL)#endif$(DL) >> $@
@echo $(DL)#define OS "i586-pc-NetWare"$(DL) >> $@
@echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
@echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
@echo $(DL)any further documentation:$(DL) >> $@
@echo $(DL)$(WWWURL)$(DL) >> $@
+$(DEVLDIR)/readme.txt: Makefile
+ @echo Creating $@
+ @echo $(DL)This is a development distribution for NetWare platform.$(DL) > $@
+ @echo $(DL)RRDTool version $(RRD_VERSION_STR)$(DL) >> $@
+ @echo $(DL)Please download the complete RRDTool package for$(DL) >> $@
+ @echo $(DL)any further documentation:$(DL) >> $@
+ @echo $(DL)$(WWWURL)$(DL) >> $@
+
help:
@echo $(DL)===========================================================$(DL)
@echo $(DL)Novell NDK Base = $(NDKBASE)$(DL)
@echo $(DL)$(MAKE) rrdcgi$(DL)
@echo $(DL)$(MAKE) librrd$(DL)
@echo $(DL)$(MAKE) clean$(DL)
+ @echo $(DL)$(MAKE) dev$(DL)
+ @echo $(DL)$(MAKE) devclean$(DL)
@echo $(DL)$(MAKE) dist$(DL)
@echo $(DL)$(MAKE) distclean$(DL)
@echo $(DL)===========================================================$(DL)
diff --git a/win32/Makefile b/win32/Makefile
index c82a111990ccac225312f5e972f86b579b637f92..7ed9c7694a7a68d174a687e5745d2a2220c70241 100644 (file)
--- a/win32/Makefile
+++ b/win32/Makefile
-# Gnu Makefile for Win32 target * 25-Aug-2006
+# Gnu Makefile for Win32 target * 09-Sep-2006
# for use with MingW32 gcc or Metrowerks CodeWarrior compiler
-# use with: make -f Makefile [all|clean|dist|distclean|help]
+# use with: make -f Makefile [help|all|clean|dev|devclean|dist|distclean]
DESCR = Round Robin Database Tool
COPYR = Copyright (c) 1997-2006 by Tobias Oetiker
ifndef DISTDIR
DISTDIR = rrdtool-$(RRD_VERSION_STR)-w32
endif
-ARCHIVE = $(DISTDIR).zip
+DISTARC = $(DISTDIR).zip
+
+# Edit the path below to point to your distribution folder.
+ifndef DEVLDIR
+DEVLDIR = rrdtool-$(RRD_VERSION_STR)-sdk-w32
+endif
+DEVLARC = $(DEVLDIR).zip
# whatever...
NO_NULL_REALLOC = 1
CFLAGS += -fno-strict-aliasing -Wall -Wno-unused # -pedantic
endif
+DS = \\
+
ifndef COPYR
COPYR = Copyright (c) 2006 The Open Source Community.
endif
@-$(CP) $(PROOT)/COPYRIGHT $(DISTDIR)
@-$(CP) $(PROOT)/NEWS $(DISTDIR)
@-$(CP) $(PROOT)/README $(DISTDIR)
- @echo Creating $(ARCHIVE)
- @$(ZIP) $(ARCHIVE) $(DISTDIR)/* < $(DISTDIR)/readme.txt
+ @echo Creating $(DISTARC)
+ @$(ZIP) $(DISTARC) $(DISTDIR)/* < $(DISTDIR)/readme.txt
+
+dev: librrd $(DEVLDIR) $(DEVLDIR)/readme.txt
+ @-mkdir $(DEVLDIR)$(DS)include
+ @-mkdir $(DEVLDIR)$(DS)lib
+ @-mkdir $(DEVLDIR)$(DS)src
+ @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DEVLDIR)/lib
+ @-$(CP) $(PROOT)/config.h $(DEVLDIR)/include
+ @-$(CP) $(PROOT)/src/rrd.h $(DEVLDIR)/include
+ @-$(CP) $(PROOT)/src/*.ttf $(DEVLDIR)/src
+ @-$(CP) $(PROOT)/CHANGES $(DEVLDIR)
+ @-$(CP) $(PROOT)/COPYING $(DEVLDIR)
+ @-$(CP) $(PROOT)/COPYRIGHT $(DEVLDIR)
+ @-$(CP) $(PROOT)/NEWS $(DEVLDIR)
+ @-$(CP) $(PROOT)/README $(DEVLDIR)
+ @echo Creating $(DEVLARC)
+ @$(ZIP) $(DEVLARC) $(DEVLDIR)/* < $(DEVLDIR)/readme.txt
clean:
-$(RM) -r $(OBJDIR)
distclean: clean
-$(RM) -r $(DISTDIR)
- -$(RM) $(ARCHIVE)
+ -$(RM) $(DISTARC)
+
+devclean: clean
+ -$(RM) -r $(DEVLDIR)
+ -$(RM) $(DEVLARC)
$(OBJDIR):
@mkdir $@
$(DISTDIR):
@mkdir $@
+$(DEVLDIR):
+ @mkdir $@
+
$(OBJDIR)/version.inc: $(PROOT)/configure.ac $(OBJDIR) $(PROOT)/src/get_ver.awk
@echo Creating $@
@$(AWK) -f $(PROOT)/src/get_ver.awk $< > $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
@echo $(DL)** All your changes will be lost!!$(DL) >> $@
@echo $(DL)*/$(DL) >> $@
+ @echo $(DL)#ifndef WIN32$(DL) >> $@
+ @echo $(DL)#error This config.h is created for Win32 platform!$(DL) >> $@
+ @echo $(DL)#endif$(DL) >> $@
@echo $(DL)#define OS "i586-pc-Win32"$(DL) >> $@
@echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
@echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
@echo $(DL)any further documentation:$(DL) >> $@
@echo $(DL)$(WWWURL)$(DL) >> $@
+$(DEVLDIR)/readme.txt: Makefile
+ @echo Creating $@
+ @echo $(DL)This is a development distribution for Win32 platform.$(DL) > $@
+ @echo $(DL)RRDTool version $(RRD_VERSION_STR)$(DL) >> $@
+ @echo $(DL)Please download the complete RRDTool package for$(DL) >> $@
+ @echo $(DL)any further documentation:$(DL) >> $@
+ @echo $(DL)$(WWWURL)$(DL) >> $@
+
help:
@echo $(DL)===========================================================$(DL)
@echo $(DL)libpng Source = $(LIBPNG)$(DL)
@echo $(DL)$(MAKE) rrdcgi$(DL)
@echo $(DL)$(MAKE) librrd$(DL)
@echo $(DL)$(MAKE) clean$(DL)
+ @echo $(DL)$(MAKE) dev$(DL)
+ @echo $(DL)$(MAKE) devclean$(DL)
@echo $(DL)$(MAKE) dist$(DL)
@echo $(DL)$(MAKE) distclean$(DL)
@echo $(DL)===========================================================$(DL)