3 # Copyright (c) 2004, Tom Russell (tom@groundfire.net)
5 # This file is part of the Groundfire project, distributed under the MIT
6 # license. See the file 'COPYING', included with this distribution, for a copy
7 # of the full MIT licence.
10 # This makefile is only tested with the gnu c++ compiler (mingw on Windows)
11 # To build this with any other compiler you will probably have to alter this
12 # Makefile (or write your own makefile.)
14 # note: This makefile will build a Windows executable by default.
15 # 'make unix' will build groundfire for a unix system (e.g. Linux).
19 WIN32FLAGS
= -mwindows
-mcpu
=i686
-O9
-fomit-frame-pointer
-ffast-math
21 WIN32LIBS
= -lglfw
-lopengl32
-lalut
-lopenal32
23 UNIXINCLUDE
= -I
/usr
/X11R6
/include -I
/usr
/local
/include
24 UNIXLIBS
= -L
/usr
/X11R6
/lib
-L
/usr
/local
/lib
-lglfw
-lGL
-lGLU
-lalut
-lopenal
-lX11
-lXxf86vm
-lXext
-pthread
-lm
27 cd src
; $(MAKE
) TARGET
=$(EXENAME
) "FLAGS=$(WIN32FLAGS)" "INCLUDE=$(WIN32INCLUDE)" "LIBS=$(WIN32LIBS)"
30 cd src
; $(MAKE
) TARGET
=$(EXENAME
) "FLAGS=$(CFLAGS)" "INCLUDE=$(UNIXINCLUDE)" "LIBS=$(UNIXLIBS)"
34 cd src
; $(MAKE
) clean
37 cd src
; $(MAKE
) depend