-# 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) >> $@
#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
-# 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) >> $@