File: makemake.bat

package info (click to toggle)
mysql++ 2.0.7-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,548 kB
  • ctags: 2,792
  • sloc: cpp: 35,566; sh: 8,517; xml: 2,769; perl: 752; makefile: 178
file content (43 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@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