Ticket #17161: patch-Makefile.diff
File patch-Makefile.diff, 1.4 KB (added by krunk7@…, 16 years ago) |
---|
-
Makefile
old new 3 3 # CFLAGS= 4 4 # CFLAGS=-g -ansi -pedantic 5 5 6 # -- Set default prefix and destdir's ------ 7 DESTDIR ?= 8 PREFIX ?= /opt/local 9 10 LD_LIBRARY_PATH=$(PREFIX)/lib 6 11 # ----- build path ----- 7 12 GDC_INCL=./ 8 13 GDC_LD=./ 9 14 GDC_LIB=libgdc.a 10 15 11 16 # ----- install locations ----- 12 PREFIX_INC = /usr/local/include13 PREFIX_LIB = /usr/local/lib17 PREFIX_INC = $(PREFIX)/include 18 PREFIX_LIB = $(PREFIX)/lib 14 19 15 20 # INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include 16 21 … … 18 23 # GDChart requires the gd library - www.boutell.com/gd/ 19 24 # gd 2.0.28 or better is required (GIF support has returned to libgd) 20 25 # if it's not installed in a standard location edit these lines for your installation 21 GD_INCL= /usr/local/include/22 GD_LD= /usr/local/lib/23 GD_LIB=libgd. so26 GD_INCL=$(PREFIX)/include/ 27 GD_LD=$(PREFIX)/lib/ 28 GD_LIB=libgd.dylib 24 29 # a static libgd is also available 25 30 # GD_LIB=libgd.a 26 31 … … 135 140 136 141 # ----- install ----- 137 142 install: gdc.h gdchart.h gdcpie.h libgdc.a 138 cp gdc.h gdchart.h gdcpie.h $(PREFIX_INC)/ 139 cp libgdc.a $(PREFIX_LIB)/ 143 install -d $(DESTDIR)/$(PREFIX_LIB) $(DESTDIR)/$(PREFIX_INC) 144 install gdc.h gdchart.h gdcpie.h $(DESTDIR)/$(PREFIX_INC)/ 145 install libgdc.a $(DESTDIR)/$(PREFIX_LIB)/ 140 146 141 147 # --- clean --- 142 148 clean: