[1] | 1 | GEODIR=c:/OSGeo4W |
---|
| 2 | DESTDIR=c:/OSGeo4W |
---|
| 3 | TPATH=..\..\..\tools |
---|
| 4 | TOOLS=$(TPATH)\bin |
---|
| 5 | CFLAGS=/EHa /nologo /MT /W3 /GX /O2 /D_CRT_SECURE_NO_WARNINGS /DWIN32 $(CJFLAGS) -I./ -I..\thirds\dirent-win32 -IC:\OSGeo4W\apps\Python25\include -I$(GEODIR)/include -I$(TPATH)\include -DLINUX_FREE_ISSUE #-DDEBUG |
---|
| 6 | CC=cl $(CFLAGS) |
---|
| 7 | CPP=cl /TP $(CFLAGS) |
---|
| 8 | |
---|
| 9 | all: service_loader |
---|
| 10 | |
---|
| 11 | service_loader: service.h lex.sr.obj service_conf.tab.obj service_conf.y service_internal_python.obj service_loader.obj main_conf_read.tab.obj lex.cr.obj service_internal.obj |
---|
| 12 | cl $(CFLAGS) lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj lex.cr.obj service_internal.obj service_internal_python.obj service_loader.obj -o service_loader -ldl `python-config --libs` `xml2-config --libs` -lfl -lcurl |
---|
| 13 | |
---|
| 14 | main_conf_read.tab.c: main_conf_read.y service.h |
---|
| 15 | $(TOOLS)\bison -p cr -d main_conf_read.y |
---|
| 16 | |
---|
| 17 | main_conf_read.tab.obj: main_conf_read.tab.c service.h |
---|
| 18 | $(CPP) /EHsc $(CFLAGS) main_conf_read.tab.c /c |
---|
| 19 | |
---|
| 20 | lex.cr.c: main_conf_read.y main_conf_read.l main_conf_read.tab.c service.h |
---|
| 21 | $(TOOLS)\flex -Pcr main_conf_read.l |
---|
| 22 | |
---|
| 23 | lex.cr.obj: lex.cr.c service.h |
---|
| 24 | $(CPP) $(CFLAGS) /c lex.cr.c |
---|
| 25 | |
---|
| 26 | service_conf.tab.c: service_conf.y service.h |
---|
| 27 | $(TOOLS)\bison -p sr -d service_conf.y |
---|
| 28 | |
---|
| 29 | service_conf.tab.obj: service_conf.tab.c service.h |
---|
| 30 | $(CPP) $(CFLAGS) service_conf.tab.c /c |
---|
| 31 | |
---|
| 32 | lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h |
---|
| 33 | $(TOOLS)\flex -Psr service_conf.l |
---|
| 34 | |
---|
| 35 | lex.sr.obj: lex.sr.c service.h |
---|
| 36 | $(CPP) $(CFLAGS) /c lex.sr.c |
---|
| 37 | |
---|
| 38 | service_internal.obj: service_internal.c |
---|
| 39 | $(CPP) $(CFLAGS) /c service_internal.c |
---|
| 40 | |
---|
| 41 | service_internal_python.obj: service_internal_python.c service.h |
---|
| 42 | $(CPP) /c $(CFLAGS) service_internal_python.c |
---|
| 43 | |
---|
| 44 | service_internal_java.obj: service_internal_java.c service.h |
---|
| 45 | $(CPP) /c $(CFLAGS) $(CJFLAGS) service_internal_java.c |
---|
| 46 | |
---|
| 47 | service_loader.obj: service_loader.c service.h |
---|
| 48 | $(CPP) /c $(CFLAGS) service_loader.c |
---|
| 49 | |
---|
| 50 | zoo_service_loader.obj: zoo_service_loader.c service.h |
---|
| 51 | $(CPP) /c $(CFLAGS) zoo_service_loader.c |
---|
| 52 | |
---|
| 53 | zoo_loader.obj: zoo_loader.c service.h |
---|
| 54 | $(CPP) /EHsc /c $(CFLAGS) zoo_loader.c |
---|
| 55 | |
---|
| 56 | zoo_loader.cgi: zoo_loader.obj zoo_service_loader.obj service_internal.obj service_internal_python.obj ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj dirent.obj |
---|
| 57 | link zoo_loader.obj dirent.obj service_internal.obj service_internal_python.obj ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj zoo_service_loader.obj /out:zoo_loader.cgi $(GEODIR)/lib/libfcgi.lib $(GEODIR)/lib/libcurl_imp.lib $(GEODIR)/apps/Python25/libs/python25.lib $(GEODIR)/lib/libxml2.lib $(GEODIR)/lib/libcgic.lib $(GEODIR)/lib/gdal_i.lib $(TOOLS)\..\lib\libeay32.dll.a $(TOOLS)\..\lib\libcrypto.a $(TOOLS)\..\lib\libssl32.dll.a /machine:i386 |
---|
| 58 | |
---|
| 59 | clean: |
---|
| 60 | erase -f *.obj *.tab.c* *.tab.h *.sr.c* lex.* *.lreg *.sibling |
---|