ultimatepp/bazaar/plugin/geotiff/libgeotiff/GNUmakefile
cxl b67920c1ca bazaar: plugin/geotiff
git-svn-id: svn://ultimatepp.org/upp/trunk@7587 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-08-12 18:56:26 +00:00

61 lines
1.1 KiB
Makefile

include ../../../GDALmake.opt
OBJ = \
xtiff.o \
geo_free.o \
geo_get.o \
geo_names.o \
geo_new.o \
geo_print.o \
geo_set.o \
geo_tiffp.o \
geo_write.o \
geo_normalize.o \
geotiff_proj4.o \
geo_extra.o \
geo_trans.o
O_OBJ = $(foreach file,$(OBJ),../../o/$(file))
ALL_C_FLAGS = $(CPPFLAGS) $(CFLAGS)
ifeq ($(TIFF_SETTING),internal)
ALL_C_FLAGS := -I../libtiff $(ALL_C_FLAGS)
endif
default: $(OBJ)
clean:
rm -f $(O_OBJ) *.o *.a
install-obj: $(O_OBJ)
../../o/%.o: %.c
$(CC) -c -I../../port $(ALL_C_FLAGS) $< -o $@
#
# Updating to the latest libgeotiff involves copying all matching source
# except for a few files that hook to GDALs own CPL services.
#
import:
@if test ! -d ~/geotiff ; then \
echo reimport requires libgeotiff checked out ~/geotiff ; \
exit 1; \
fi
rm -rf safe
mkdir safe
mv cpl_serv.h geo_config.h safe
copymatch.sh ~/geotiff/libgeotiff *.cpp *.c *.h *.inc
copymatch.sh ~/geotiff/libgeotiff/libxtiff xtiff*.c xtiffio.h
mv safe/* .
rm -rf safe
@echo
@echo 'Now do something like:'
@echo '% cvs commit -m "updated to libgeotiff 1.1.x"'
@echo