mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
61 lines
1.1 KiB
Makefile
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
|