[GRASS-dev] wingrass: problems with some Makefiles
Glynn Clements
glynn at gclements.plus.com
Tue Oct 23 06:39:36 EDT 2007
Moritz Lennert wrote:
> Now I have the following three problems (see also log attached):
>
> 1) lib/gis
> /bin/install -c -m 644 colors/CVS
> /c/grasssrc/grass6/dist.i686-pc-mingw32/etc/c
> olors/CVS
> /bin/install: `colors/CVS' is a directory
> make: *** [/c/grasssrc/grass6/dist.i686-pc-mingw32/etc/colors/CVS] Error 1
Ack. I just fixed one manifestation of this, and overlooked that
Windows isn't case sensitive. Try this:
--- lib/gis/Makefile 19 Oct 2007 13:45:53 -0000 1.50
+++ lib/gis/Makefile 23 Oct 2007 10:33:03 -0000
@@ -8,7 +8,7 @@
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
DATAFILES := $(patsubst %,$(ETC)/%,$(DATASRC))
-COLORSRC := $(wildcard colors/[abcdefghijklmnopqrstuvwxyz]*)
+COLORSRC := $(filter-out colors/CVS,$(wildcard colors/[abcdefghijklmnopqrstuvwxyz]*))
COLORFILES := $(patsubst colors/%,$(ETC)/colors/%,$(COLORSRC))
#compile if LFS Large File Support present:
> 3) vector/v.voronoi (looks like another problem with my MinGW
> installation, but did not see this before)
> /mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference
> to `WinMain at 16'^M
> collect2: ld returned 1 exit status^M
--- vector/v.voronoi/Makefile 20 Oct 2007 00:39:46 -0000 1.9
+++ vector/v.voronoi/Makefile 23 Oct 2007 10:37:47 -0000
@@ -28,9 +28,9 @@
default: $(BIN)/$(DELAUNAY)$(EXE) $(BIN)/$(VORONOI)$(EXE)
$(MAKE) htmlmulti
-$(BIN)/$(VORONOI)$(EXE): $(DEPENDENCIES)
+$(BIN)/$(VORONOI)$(EXE): $(VORONOI_ARCH_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(FMODE_OBJ) $(LIBES) $(MATHLIB) $(XDRLIB)
-$(BIN)/$(DELAUNAY)$(EXE):$(DEPENDENCIES)
+$(BIN)/$(DELAUNAY)$(EXE):$(DELAUNAY_ARCH_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(FMODE_OBJ) $(LIBES) $(MATHLIB) $(XDRLIB)
The strange thing about this one is that it doesn't generate an error
on Linux.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list