File: Mingw32.bat

package info (click to toggle)
mesa 3.1-17
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,908 kB
  • ctags: 19,599
  • sloc: ansic: 132,736; asm: 10,554; sh: 9,193; cpp: 3,540; makefile: 1,377
file content (66 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
echo off
rem EGCS-Mingw32 build of Mesa 3-D Graphics Library
rem Paul Garceau, August 26, 1998
rem
rem bat file uses Make 3.76.1
rem touch command requires "touch" to be somewhere on your system path
rem
touch src/depend
touch src-glu/depend
rem touch src-glut/depend

rem Create a lib directory/folder
rem
md lib

rem Generate wing32.dll for the sake of Mesa build
cd src\windows
rem
rem Create a .a lib file
rem
dlltool --def wing32.def --output-lib wing32.a
rem
rem Create a .dll file (wing32.dll); EGCS-Mingw32 compiler used
rem
gcc -mdll -o wing32.dll wing32.a -WI,temp.exp
rem
rem wing32.dll is now created -- move .a and .dll to
rem lib dir
mv wing32.dll wing32.a c:\mesa-3.0\lib
rem files moved

rem Return to mesa-3.0 'root' directory
cd c:\mesa-3.0

rem Now begins the build of mesa-2.6 libs for EGCS/Mingw32

rem  Build libMesaGL.a
rem
make -w --directory=c:\mesa-3.0\src -f makefile.nt4

rem  Build libMesaGLU.a
rem
make -w --directory=c:\mesa-3.0\src-glu -f makefile.nt4

rem  Optional libraries:
rem The following libraries, apparently, are optional
rem for Mesa and should only be uncommented if you have the
rem necessary support already available on your machine
rem
rem         Mesaaux.a lib for aux extension
rem make -w --directory=c:\mesa-3.0\src-aux -f makefile.nt4

rem         libglut.a for glut extension of Mesa:
rem make -w --directory=c:\mesa-3.0\src-glut -f makefile.nt4
rem
rem         libMesatk.a for tk extensions of Mesa
rem make -w --directory=c:\mesa-3.0\src-tk -f makefile.nt4
rem
rem Clean up the object files floating around out there...
rem comment the next lines depending on which collection of
rem Mesa libs you built
rem
del src\*.o
del src-glu\*.o
rem del src-aux\*.o
rem del src-glut\*.o