source: grass/trunk/lib/vector/diglib/Makefile

Last change on this file was 56674, checked in by neteler, 11 years ago

diglib: use cmp for byte-wise comparison of portability test (diff is ASCII only on AIX)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id
  • Property svn:mime-type set to text/x-sh
File size: 835 bytes
Line 
1MODULE_TOPDIR = ../../..
2
3include $(MODULE_TOPDIR)/include/Make/Vars.make
4
5MOD_OBJS := $(filter-out test.o port_test.o,$(AUTO_OBJS))
6
7LIB = DIG2
8
9include $(MODULE_TOPDIR)/include/Make/Lib.make
10
11EXTRA_INC = $(VECT_INC)
12EXTRA_CFLAGS = $(VECT_CFLAGS)
13LIBES = $(GISLIB) $(RTREELIB) $(MATHLIB)
14
15#compile if LFS (Large File Support) present:
16ifneq ($(USE_LARGEFILES),)
17 TESTFILE = test64.ok
18else
19 TESTFILE = test32.ok
20endif
21
22default: lib
23 @echo "==============TEST============="
24ifeq ($(strip $(CROSS_COMPILING)),)
25 $(MAKE) test
26endif
27
28test: $(OBJDIR)/test.tmp $(TESTFILE)
29 cmp $(OBJDIR)/test.tmp $(TESTFILE)
30
31$(OBJDIR)/test.tmp: $(OBJDIR)/test$(EXE)
32 cd $(OBJDIR) && $(call run_grass,./test)
33
34# Test portable read/write functions
35$(OBJDIR)/test$(EXE): $(OBJDIR)/test.o $(DIG2DEP)
36 $(call linker)
37
38$(OBJDIR)/test$(EXE): LIBES = $(DIG2LIB)
Note: See TracBrowser for help on using the repository browser.