1# 2# CPL (Common Portability Library) makefile 3# 4 5ifneq ($(wildcard ../GDALmake.op?),) 6include ../GDALmake.opt 7else 8include GDALmake.opt 9endif 10 11CPPFLAGS := $(CPPFLAGS) $(CURL_INC) -I../frmts/zlib 12 13OBJ = cpl_conv.o cpl_error.o cpl_string.o cplgetsymbol.o \ 14 cpl_strtod.o cpl_path.o cpl_csv.o cpl_findfile.o cpl_minixml.o \ 15 cpl_multiproc.o cpl_list.o cpl_getexecpath.o cplstring.o \ 16 cpl_vsil_win32.o cpl_vsisimple.o cpl_vsil.o cpl_vsi_mem.o \ 17 cpl_vsil_unix_stdio_64.o cpl_http.o cpl_hash_set.o cplkeywordparser.o \ 18 cpl_recode_stub.o cpl_quad_tree.o 19 20ifeq ($(ODBC_SETTING),yes) 21OBJ := $(OBJ) cpl_odbc.o 22endif 23 24 25ifeq ($(CURL_SETTING),yes) 26CPPFLAGS := $(CPPFLAGS) -DHAVE_CURL 27endif 28 29ifneq ($(LIBZ_SETTING),no) 30OBJ := $(OBJ) cpl_vsil_gzip.o cpl_minizip_ioapi.o cpl_minizip_unzip.o 31CPPFLAGS := $(CPPFLAGS) -DHAVE_LIBZ 32endif 33 34default: $(OBJ) 35 36clean: 37 $(RM) *.o $(LIB) 38 39install: 40 for f in *.h ; do $(INSTALL_DATA) $$f $(DESTDIR)$(INST_INCLUDE) ; done 41 42xmlreformat: xmlreformat.o 43 $(CXX) $(CXXFLAGS) xmlreformat.o $(CONFIG_LIBS) -o xmlreformat 44