Last change
on this file since 284 was
38,
checked in by djay, 14 years ago
|
Add specific error messages returned to the ZOO Kernel when the service failed. Correct the zcfg file for the Ogr2oOgr service. Use the GDALmake.opt file from the gdal source tree to get the correct flags for compilation.
|
File size:
670 bytes
|
Rev | Line | |
---|
[38] | 1 | GDAL_SRC=./gdal_src/ |
---|
[1] | 2 | |
---|
[38] | 3 | include $(GDAL_SRC)GDALmake.opt |
---|
[1] | 4 | |
---|
[38] | 5 | CPPFLAGS := $(GDAL_INCLUDE) -I$(GDAL_ROOT)/frmts $(CPPFLAGS) |
---|
| 6 | DEP_LIBS = $(EXE_DEP_LIBS) $(XTRAOBJ) |
---|
| 7 | BIN_LIST = cgi-env/ogr2ogr_service.zo |
---|
| 8 | |
---|
| 9 | default: $(BIN_LIST) |
---|
| 10 | |
---|
| 11 | all: default |
---|
| 12 | |
---|
| 13 | lib-depend: |
---|
| 14 | (cd $(GDAL_SRC)/gcore ; $(MAKE) ) |
---|
| 15 | (cd $(GDAL_SRC)/port ; $(MAKE) ) |
---|
| 16 | |
---|
| 17 | CFLAGS=-DZOO_SERVICE -I../../../zoo-kernel/ |
---|
| 18 | |
---|
| 19 | #cgi-env/ogr2ogr_service.zo: service.c |
---|
| 20 | # g++ -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/ogr2ogr_service.zo ./service.c -lgdal |
---|
| 21 | |
---|
| 22 | cgi-env/ogr2ogr_service.zo: service.c $(DEP_LIBS) |
---|
| 23 | g++ $(CFLAGS) $(CPPFLAGS) -shared -fpic $< `gdal-config --libs` -o $@ |
---|
| 24 | |
---|
[1] | 25 | clean: |
---|
[38] | 26 | rm -f cgi-env/*zo |
---|
Note: See
TracBrowser
for help on using the repository browser.