Index: trunk/Makefile.conf.in =================================================================== --- trunk/Makefile.conf.in (nonexistent) +++ trunk/Makefile.conf.in (revision 282) @@ -0,0 +1,11 @@ +# Default installation prefix +PREFIX = /usr/local + +# For production enable this: +CFLAGS_CFG = -O3 + +# For debug, comment the above and uncomment this one: +#CFLAGS_CFG = -Wall -g + +# On windows you need to enable this +#EXE=.exe Index: trunk/configure =================================================================== --- trunk/configure (nonexistent) +++ trunk/configure (revision 282) @@ -0,0 +1,7 @@ +#!/bin/sh + +if test ! -f Makefile.conf +then + cp Makefile.conf.in Makefile.conf + echo "Optional: if you want to deviate from defaults, you may want to edit your Makefile.conf now." +fi Property changes on: trunk/configure ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: trunk/src/route-rnd/Makefile =================================================================== --- trunk/src/route-rnd/Makefile (revision 281) +++ trunk/src/route-rnd/Makefile (revision 282) @@ -1,5 +1,8 @@ ROOT=../.. -CFLAGS = -Wall -g -I. -I$(ROOT)/src_3rd -I$(ROOT)/src/plugins + +include $(ROOT)/Makefile.conf + +CFLAGS = $(CFLAGS_CFG) -I. -I$(ROOT)/src_3rd -I$(ROOT)/src/plugins LOCLIBS = $(ROOT)/src_3rd/genvector/libgenvector.a $(ROOT)/src_3rd/genht/libgenht.a LDLIBS = $(LOCLIBS) LDFLAGS = -lm @@ -6,12 +9,12 @@ OBJS = route-rnd.o rtree.o compat_misc.o data.o io.o util_grid.o htdi.o \ netseg.o find.o rtpoly.o route_res.o conf.o -all: route-rnd +all: route-rnd$(EXE) include ../plugins/Makefile.inc include Makefile.dep -route-rnd: $(OBJS) $(BUILDIN_O) +route-rnd$(EXE): $(OBJS) $(BUILDIN_O) $(ROOT)/src_3rd/genvector/libgenvector.a: cd $(ROOT)/src_3rd/genvector && make libgenvector.a