[216] | 1 | # WIN32 Makefile tested using VC-9.0 |
---|
| 2 | # Don't forget to set your PATH using the following command : |
---|
| 3 | # c:\Progam Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat |
---|
| 4 | # set PATH=%PATH%;$(TOOLS) |
---|
| 5 | # using value for TOOLS relative to your local installation |
---|
| 6 | # |
---|
[1] | 7 | |
---|
[216] | 8 | !INCLUDE nmake.opt |
---|
[1] | 9 | |
---|
[582] | 10 | all: $(PROGRAMNAME) zcfg2yaml |
---|
[1] | 11 | |
---|
[465] | 12 | version.h: |
---|
[467] | 13 | set VERS=`svnversion .` |
---|
| 14 | echo #define ZOO_VERSION "$(VERS)" > version.h |
---|
[465] | 15 | |
---|
[1] | 16 | main_conf_read.tab.c: main_conf_read.y service.h |
---|
[364] | 17 | bison -p cr -d main_conf_read.y |
---|
[1] | 18 | |
---|
| 19 | main_conf_read.tab.obj: main_conf_read.tab.c service.h |
---|
| 20 | $(CPP) /EHsc $(CFLAGS) main_conf_read.tab.c /c |
---|
| 21 | |
---|
| 22 | lex.cr.c: main_conf_read.y main_conf_read.l main_conf_read.tab.c service.h |
---|
[364] | 23 | flex -Pcr main_conf_read.l |
---|
[1] | 24 | |
---|
| 25 | lex.cr.obj: lex.cr.c service.h |
---|
| 26 | $(CPP) $(CFLAGS) /c lex.cr.c |
---|
| 27 | |
---|
| 28 | service_conf.tab.c: service_conf.y service.h |
---|
[364] | 29 | bison -p sr -d service_conf.y |
---|
[1] | 30 | |
---|
| 31 | service_conf.tab.obj: service_conf.tab.c service.h |
---|
| 32 | $(CPP) $(CFLAGS) service_conf.tab.c /c |
---|
| 33 | |
---|
| 34 | lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h |
---|
[364] | 35 | flex -Psr service_conf.l |
---|
[1] | 36 | |
---|
| 37 | lex.sr.obj: lex.sr.c service.h |
---|
| 38 | $(CPP) $(CFLAGS) /c lex.sr.c |
---|
| 39 | |
---|
[467] | 40 | zcfg2yaml.obj: zcfg2yaml.c |
---|
| 41 | $(CPP) $(CFLAGS) /c zcfg2yaml.c |
---|
| 42 | |
---|
[680] | 43 | service_internal.obj: service_internal.c service_internal.h |
---|
[1] | 44 | $(CPP) $(CFLAGS) /c service_internal.c |
---|
| 45 | |
---|
[680] | 46 | server_internal.obj: server_internal.c server_internal.h |
---|
| 47 | $(CPP) $(CFLAGS) /c server_internal.c |
---|
| 48 | |
---|
| 49 | caching.obj: caching.c caching.h |
---|
| 50 | $(CPP) $(CFLAGS) /c caching.c |
---|
| 51 | |
---|
| 52 | request_parser.obj: request_parser.c request_parser.h |
---|
| 53 | $(CPP) $(CFLAGS) /c request_parser.c |
---|
| 54 | |
---|
| 55 | response_print.obj: response_print.c response_print.h |
---|
| 56 | $(CPP) $(CFLAGS) /c response_print.c |
---|
| 57 | |
---|
| 58 | service.obj: service.c service.h |
---|
| 59 | $(CPP) $(CFLAGS) /c service.c |
---|
| 60 | |
---|
| 61 | sqlapi.obj: sqlapi.c sqlapi.h |
---|
| 62 | $(CPP) $(CFLAGS) /c sqlapi.c |
---|
| 63 | |
---|
[364] | 64 | service_internal_js.obj: service_internal_js.c service.h |
---|
| 65 | $(CPP) /c $(CFLAGS) service_internal_js.c |
---|
| 66 | |
---|
| 67 | service_internal_java.obj: service_internal_java.c service.h |
---|
| 68 | $(CPP) /c $(CFLAGS) service_internal_java.c |
---|
| 69 | |
---|
[453] | 70 | service_internal_ruby.obj: service_internal_ruby.c service_internal_ruby.h service.h |
---|
| 71 | $(CPP) /c $(CFLAGS) service_internal_ruby.c |
---|
| 72 | |
---|
[1] | 73 | service_internal_python.obj: service_internal_python.c service.h |
---|
| 74 | $(CPP) /c $(CFLAGS) service_internal_python.c |
---|
| 75 | |
---|
[364] | 76 | service_internal_ms.obj: service_internal_ms.c service.h |
---|
| 77 | $(CPP) /c $(CFLAGS) service_internal_ms.c |
---|
| 78 | |
---|
[1] | 79 | service_loader.obj: service_loader.c service.h |
---|
| 80 | $(CPP) /c $(CFLAGS) service_loader.c |
---|
| 81 | |
---|
| 82 | zoo_service_loader.obj: zoo_service_loader.c service.h |
---|
| 83 | $(CPP) /c $(CFLAGS) zoo_service_loader.c |
---|
| 84 | |
---|
| 85 | zoo_loader.obj: zoo_loader.c service.h |
---|
| 86 | $(CPP) /EHsc /c $(CFLAGS) zoo_loader.c |
---|
| 87 | |
---|
[216] | 88 | |
---|
[680] | 89 | $(LIBZOO_SERVICE): service_internal.obj service.obj sqlapi.obj |
---|
| 90 | link /dll /out:$(LIBZOO_SERVICE) ./service.obj ./service_internal.obj ./sqlapi.obj $(LDFLAGS) /FORCE:MULTIPLE |
---|
| 91 | |
---|
| 92 | $(PROGRAMNAME): version.h $(LIBZOO_SERVICE) zoo_loader.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj request_parser.obj response_print.obj server_internal.obj caching.obj |
---|
| 93 | link zoo_loader.obj request_parser.obj response_print.obj server_internal.obj caching.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj zoo_service_loader.obj ./libzoo_service.lib /out:$(PROGRAMNAME) $(LDFLAGS) $(LDFLAGSCGI) |
---|
| 94 | |
---|
[486] | 95 | zcfg2yaml: version.h zcfg2yaml.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj |
---|
[680] | 96 | link zcfg2yaml.obj server_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj response_print.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj ./libzoo_service.lib /out:zcfg2yaml.exe $(LDFLAGS) $(LDFLAGSCGI) |
---|
[1] | 97 | |
---|
| 98 | clean: |
---|
[680] | 99 | erase -f *.cgi *.obj *.tab.c* *.tab.h *.sr.c* lex.* *.lreg *.sibling *.lib *.dll |
---|