Created
July 18, 2011 06:10
-
-
Save bilke/1088657 to your computer and use it in GitHub Desktop.
libgeotiff-1.3.0 Makefile for NMake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Typically the only thing that needs to be changed are the paths to the | |
# TIFF tree. Note that we expect an existing build tree, in part because we | |
# need private include files from libtiff, but also we need access to getopt.h. | |
# in the ports directory. | |
# | |
# You may want to add optimization options to the CFLAGS macro as well. | |
# | |
# This should point to an installed vtk | |
VTK_BUILD_DIR = ..\vtk\Build | |
VTK_SOURCE_DIR = ..\vtk | |
# Installation locations (with install, or devinstall targets) | |
PREFIX = c:\usr | |
BINDIR = $(PREFIX)\bin | |
LIBDIR = $(PREFIX)\lib | |
INCDIR = $(PREFIX)\include | |
DATADIR = $(PREFIX)\share\epsg_csv | |
# | |
CC = cl | |
INCL = -I. -Ilibxtiff -I$(VTK_SOURCE_DIR)\Utilities\vtktiff -I$(VTK_BUILD_DIR)\Utilities | |
LIBS = geotiff.lib $(VTK_BUILD_DIR)\bin\Release\vtktiff.lib | |
# Set optimization or debug flags here. | |
CFLAGS = $(INCL) /MD /Ox /nologo | |
# | |
OBJS = \ | |
xtiff.obj \ | |
geo_free.obj \ | |
geo_get.obj \ | |
geo_names.obj \ | |
geo_new.obj \ | |
geo_print.obj \ | |
geo_set.obj \ | |
geo_tiffp.obj \ | |
geo_write.obj \ | |
geo_extra.obj \ | |
geo_trans.obj \ | |
geo_normalize.obj \ | |
geo_simpletags.obj \ | |
cpl_csv.obj \ | |
cpl_serv.obj | |
#geotiff_proj4.obj \ | |
all: geotiff.lib | |
geotiff.lib: $(OBJS) | |
lib /out:geotiff.lib $(OBJS) | |
geo_config.h: geo_config.h.vc | |
copy geo_config.h.vc geo_config.h | |
xtiff.obj: libxtiff\xtiff.c | |
$(CC) -c $(CFLAGS) libxtiff\xtiff.c | |
geo_free.obj: geo_free.c | |
$(CC) -c $(CFLAGS) geo_free.c | |
geo_get.obj: geo_get.c | |
$(CC) -c $(CFLAGS) geo_get.c | |
geo_names.obj: geo_names.c | |
$(CC) -c $(CFLAGS) geo_names.c | |
geo_new.obj: geo_new.c | |
$(CC) -c $(CFLAGS) geo_new.c | |
geo_print.obj: geo_print.c | |
$(CC) -c $(CFLAGS) geo_print.c | |
geo_set.obj: geo_set.c | |
$(CC) -c $(CFLAGS) geo_set.c | |
geo_tiffp.obj: geo_tiffp.c | |
$(CC) -c $(CFLAGS) geo_tiffp.c | |
geo_write.obj: geo_write.c | |
$(CC) -c $(CFLAGS) geo_write.c | |
geo_trans.obj: geo_trans.c | |
$(CC) -c $(CFLAGS) geo_trans.c | |
geo_extra.obj: geo_extra.c | |
$(CC) -c $(CFLAGS) geo_extra.c | |
geo_normalize.obj: geo_normalize.c | |
$(CC) -c $(CFLAGS) geo_normalize.c | |
# geotiff_proj4.obj: geotiff_proj4.c | |
# $(CC) -c $(CFLAGS) geotiff_proj4.c | |
cpl_csv.obj: cpl_csv.c | |
$(CC) -c $(CFLAGS) cpl_csv.c | |
cpl_serv.obj: cpl_serv.c | |
$(CC) -c $(CFLAGS) cpl_serv.c | |
clean: | |
-del *.obj | |
-del *.exe | |
-del *.lib | |
-del *.dll | |
install: all | |
-mkdir $(PREFIX) | |
-mkdir $(BINDIR) | |
-mkdir $(DATADIR) | |
copy *.dll $(BINDIR) | |
copy *.exe $(BINDIR) | |
-copy csv\*.csv $(DATADIR) | |
devinstall: install | |
-mkdir $(INCDIR) | |
-mkdir $(LIBDIR) | |
copy *.lib $(LIBDIR) | |
copy *.h $(INCDIR) | |
copy libxtiff\*.h $(INCDIR) | |
copy *.inc $(INCDIR) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment