|
|
Choosing A Webhost: |
Re: RELEASE: v2.0.5: msg#00060db.mysql.c++
Thomas Werth wrote:
Grrr.... cmd.exe is brain-dead. Use the attached makemake.bat instead. If anyone out there has batch-fu, I would really like to know why you cannot assign %1 to another variable and then make tests based on the new variable. The cmd.exe batch interpreter behaves differently depending on whether you use %1 or %BUILDSYS, even when both have the same value! Lame, lame, lame! Do i need to call makemake running under cygwin box with previous set up I see. The answer is, you only have Cygwin installed to get GNU make. You still run everything from the regular Windows command prompt, because Cygwin's command shell doesn't understand batch files. I will make this clearer in README.vc. @echo off if "%1" == "vc" goto build_makefiles if "%1" == "mingw" goto build_makefiles echo Unrecognized build system %1. echo. goto usage :build_makefiles rem Create Makefiles in subdirectories for %%d in ( lib examples ) do call buildmf.bat %1 %%d rem Create top-level Makefile echo all: > Makefile echo @cmd /c mkbindirs.bat >> Makefile echo cd lib ^&^& $(MAKE) BIN_DIR=debug all example_setup >> Makefile echo cd lib ^&^& $(MAKE) BIN_DIR=release >> Makefile echo cd examples ^&^& $(MAKE) >> Makefile echo. >> Makefile echo install: all >> Makefile echo @cmd /c install.bat %1 >> Makefile echo. >> Makefile echo clean debug release: >> Makefile echo cd lib ^&^& $(MAKE) $@ >> Makefile echo cd examples ^&^& $(MAKE) $@ >> Makefile echo Created Makefiles successfully. goto end rem Display usage message :usage echo usage: makemake {vc, mingw} echo. echo You must give one of the compiler parameters: echo. echo vc: Visual C++ command-line compiler (cl) echo mingw: MinGW GCC (g++) goto end :end -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: libtool request, Warren Young |
|---|---|
| Next by Date: | Re: Bakefile, Vaclav Slavik |
| Previous by Thread: | Re: RELEASE: v2.0.5, Thomas Werth |
| Next by Thread: | Bakefile, Patrick McMichael |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |