|
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 | |
|---|
| 1 | MODULE_TOPDIR = ../../..
|
|---|
| 2 |
|
|---|
| 3 | include $(MODULE_TOPDIR)/include/Make/Vars.make
|
|---|
| 4 |
|
|---|
| 5 | MOD_OBJS := $(filter-out test.o port_test.o,$(AUTO_OBJS))
|
|---|
| 6 |
|
|---|
| 7 | LIB = DIG2
|
|---|
| 8 |
|
|---|
| 9 | include $(MODULE_TOPDIR)/include/Make/Lib.make
|
|---|
| 10 |
|
|---|
| 11 | EXTRA_INC = $(VECT_INC)
|
|---|
| 12 | EXTRA_CFLAGS = $(VECT_CFLAGS)
|
|---|
| 13 | LIBES = $(GISLIB) $(RTREELIB) $(MATHLIB)
|
|---|
| 14 |
|
|---|
| 15 | #compile if LFS (Large File Support) present:
|
|---|
| 16 | ifneq ($(USE_LARGEFILES),)
|
|---|
| 17 | TESTFILE = test64.ok
|
|---|
| 18 | else
|
|---|
| 19 | TESTFILE = test32.ok
|
|---|
| 20 | endif
|
|---|
| 21 |
|
|---|
| 22 | default: lib
|
|---|
| 23 | @echo "==============TEST============="
|
|---|
| 24 | ifeq ($(strip $(CROSS_COMPILING)),)
|
|---|
| 25 | $(MAKE) test
|
|---|
| 26 | endif
|
|---|
| 27 |
|
|---|
| 28 | test: $(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.