summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4414387)
raw | patch | inline | side by side (parent: 4414387)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 9 Feb 2007 22:19:48 +0000 (22:19 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 9 Feb 2007 22:19:48 +0000 (22:19 +0000) |
program/netware/Makefile | patch | blob | history | |
program/src/rrd_tool.h | patch | blob | history | |
program/win32/Makefile | patch | blob | history |
index bfcbc1429a74f6349f1238ccfd866f28bae5a7f3..135f1571e019ebfcf48243e6c1f627d91cd08c6d 100644 (file)
--- a/program/netware/Makefile
+++ b/program/netware/Makefile
-# Gnu Makefile for NetWare target * 29-Jan-2007
+# Gnu Makefile for NetWare target * 08-Feb-2007
# for use with gcc/nlmconv or Metrowerks CodeWarrior compiler
# use with: make -f Makefile [help|all|clean|dev|devclean|dist|distclean]
AR = ar
ARFLAGS = -cq
LIBEXT = a
-CFLAGS += -fno-builtin -fpack-struct -fpcc-struct-return -fno-strict-aliasing
-CFLAGS += -Wall -Wno-unused -Wno-return-type # -pedantic
+CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
+CFLAGS += -Wall -Wno-unused # -pedantic
ifeq ($(LIBARCH),LIBC)
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
else
ifeq ($(MTSAFE),NO)
XDCOPT = -u
endif
-ifndef COPYR
- COPYR = Copyright (c) 2006 The Open Source Community.
-endif
ifndef DESCR
DESCR = $(notdir $(@:.def=)) Command Extension
endif
rrdcgi: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
librrd: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/librrd.$(LIBEXT)
+FORCE: ;
+
dist: all $(DISTDIR) $(DISTDIR)/readme.txt
-# @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DISTDIR)
@-$(CP) $(OBJDIR)/rrdcgi.$(CGIEXT) $(DISTDIR)
@-$(CP) $(OBJDIR)/rrdtool.nlm $(DISTDIR)
@-$(CP) $(PROOT)/src/*.ttf $(DISTDIR)
@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
endif
-$(PROOT)/rrd_config.h: Makefile
+$(PROOT)/rrd_config.h: FORCE Makefile $(OBJDIR)/version.inc
@echo Creating $@
@echo $(DL)/* $(notdir $@) for NetWare target.$(DL) > $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
diff --git a/program/src/rrd_tool.h b/program/src/rrd_tool.h
index 1d8a2149ac6dcc2ee1928d9e438cac4c9ca21a2c..cf4f45c5ba9b28646d3544181e07dd4664f1b7ed 100644 (file)
--- a/program/src/rrd_tool.h
+++ b/program/src/rrd_tool.h
#ifndef _RRD_TOOL_H
#define _RRD_TOOL_H
-#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
-#include "../win32/config.h"
-#else
#ifdef HAVE_CONFIG_H
#include "../rrd_config.h"
-#endif
+#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+#include "../win32/config.h"
#endif
#ifdef MUST_DISABLE_SIGFPE
diff --git a/program/win32/Makefile b/program/win32/Makefile
index b6e90c4ddea89e738489484ec4dd0013a115b9f4..132bfc88e56dec261111bff2f13193bef1fae8d3 100644 (file)
--- a/program/win32/Makefile
+++ b/program/win32/Makefile
-# Gnu Makefile for Win32 target * 29-Jan-2007
+# Gnu Makefile for Win32 target * 08-Feb-2007
# for use with MingW32 gcc or Metrowerks CodeWarrior compiler
# use with: make -f Makefile [help|all|clean|dev|devclean|dist|distclean]
endif
# Edit the path below to point to your freetype sources or set environment var.
ifndef LIBFT2
-#LIBFT2 = $(LIBBASE)/freetype-2.2.1
+#LIBFT2 = $(LIBBASE)/freetype-2.3.1
LIBFT2 = $(LIBBASE)/../mingw32/freetype-2.3.1
endif
# Edit the path below to point to your libart sources or set environment var.
LDLIBS += -lkernel32.lib -luser32.lib
LDLIBS += -lMSL_Runtime_x86.lib -lMSL_C_x86.lib -lMSL_Extras_x86.lib
RCFLAGS =
+CFLAGS += -DWIN32
CFLAGS += -nostdinc -gccinc -msgstyle gcc -inline off -opt nointrinsics -proc 586
CFLAGS += -ir "$(METROWERKS)/MSL" -ir "$(METROWERKS)/Win32-x86 Support"
CFLAGS += -w on,nounused,nounusedexpr # -ansi strict
ARFLAGS = -cq
LIBEXT = a
RCFLAGS = -O coff -i
-CFLAGS += -fno-strict-aliasing -Wall -Wno-unused # -pedantic
+CFLAGS += -fno-strict-aliasing
+CFLAGS += -Wall -Wno-unused # -pedantic
endif
ifeq ($(findstring msys,$(OSTYPE)),msys)
DS = \\
endif
-ifndef COPYR
- COPYR = Copyright (c) 2007 The Open Source Community.
-endif
ifndef DESCR
DESCR = $(notdir $(@:.rc=)) Command Extension
endif
rrdcgi: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
librrd: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/librrd.$(LIBEXT)
+FORCE: ;
+
dist: all $(DISTDIR) $(DISTDIR)/readme.txt
-# @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DISTDIR)
@-$(CP) $(OBJDIR)/rrdcgi.$(CGIEXT) $(DISTDIR)
@-$(CP) $(OBJDIR)/rrdtool.exe $(DISTDIR)
@-$(CP) $(PROOT)/src/*.ttf $(DISTDIR)
@echo $(DL)10 ICON DISCARDABLE "$(ICON)"$(DL) >> $@
endif
-$(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc
+$(PROOT)/rrd_config.h: FORCE Makefile $(OBJDIR)/version.inc
@echo Creating $@
@echo $(DL)/* $(notdir $@) for Win32 target.$(DL) > $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@