X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=win32%2FMakefile;h=8c392d55201ebbf044689c0a8043655b2feafd73;hp=b6e90c4ddea89e738489484ec4dd0013a115b9f4;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=9d04d24182bbc747996fde0e6213c03573d2d9ad diff --git a/win32/Makefile b/win32/Makefile index b6e90c4..8c392d5 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -1,6 +1,9 @@ -# Gnu Makefile for Win32 target * 29-Jan-2007 +# Gnu Makefile for Win32 target # for use with MingW32 gcc or Metrowerks CodeWarrior compiler # use with: make -f Makefile [help|all|clean|dev|devclean|dist|distclean] +# +# $id: $ +# DESCR = Round Robin Database Tool COPYR = Copyright (c) 1997-2007 by Tobias Oetiker @@ -34,8 +37,8 @@ LIBPNG = $(LIBBASE)/libpng-1.2.16 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)/../mingw32/freetype-2.3.1 +#LIBFT2 = $(LIBBASE)/freetype-2.3.4 +LIBFT2 = $(LIBBASE)/../mingw32/freetype-2.3.4 endif # Edit the path below to point to your libart sources or set environment var. ifndef LIBART @@ -72,7 +75,7 @@ CP = cp -afv # Here you can find a native Win32 binary of the original awk: # http://www.gknw.net/development/prgtools/awk.zip AWK = awk -ZIP = zip -qzR9 +ZIP = zip -qzr9 # must be equal to DEBUG or NDEBUG DB = NDEBUG @@ -106,6 +109,7 @@ LIBPATH += -lr "$(METROWERKS)/MSL" -lr "$(METROWERKS)/Win32-x86 Support" 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 @@ -117,7 +121,8 @@ AR = ar 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) @@ -127,9 +132,6 @@ else DS = \\ endif -ifndef COPYR - COPYR = Copyright (c) 2007 The Open Source Community. -endif ifndef DESCR DESCR = $(notdir $(@:.rc=)) Command Extension endif @@ -171,9 +173,9 @@ RRDLIBOBJS = \ $(EOLIST) XLIBOBJS = \ + $(OBJDIR)/rrd_getopt.o \ + $(OBJDIR)/rrd_getopt1.o \ $(OBJDIR)/art_rgba_svp.o \ - $(OBJDIR)/getopt.o \ - $(OBJDIR)/getopt1.o \ $(OBJDIR)/hash_32.o \ $(OBJDIR)/parsetime.o \ $(OBJDIR)/pngsize.o \ @@ -239,8 +241,9 @@ rrdtool: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdtool.exe 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) @@ -353,7 +356,7 @@ ifdef ICON @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) >> $@ @@ -371,11 +374,9 @@ $(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@ @echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@ @echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@ - @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@ @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@ @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@ @echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@ -# @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@ @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@ @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@ @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@ @@ -383,9 +384,7 @@ $(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@ @echo $(DL)#define HAVE_MATH_H 1$(DL) >> $@ @echo $(DL)#define HAVE_MBSTOWCS 1$(DL) >> $@ - @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@ @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@ -# @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@ @echo $(DL)#define HAVE_SNPRINTF 1$(DL) >> $@ @echo $(DL)#define HAVE_STDARG_H 1$(DL) >> $@ @echo $(DL)#define HAVE_STDDEF_H 1$(DL) >> $@ @@ -398,12 +397,10 @@ $(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@ @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@ @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@ -# @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ - @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@ + @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@ @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@ @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@ - @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@ @echo $(DL)#define HAVE_VSNPRINTF 1$(DL) >> $@ @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@ @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@ @@ -421,7 +418,7 @@ endif @echo $(DL)#define RRDGRAPH_YLEGEND_ANGLE $(RRDGRAPH_YLEGEND_ANGLE)$(DL) >> $@ @echo $(DL)#define strftime strftime_$(DL) >> $@ ifdef WITH_PIECHART - @echo $(DL)#define WITH_PIECHART 1$(DL) >> $@ + @echo $(DL)#define WITH_PIECHART $(WITH_PIECHART)$(DL) >> $@ endif @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@