updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / groundfire / Makefile
blob905acbc94a5d89ecfafff05e2018e79be7fb9181
1 # Modifié par Nicoco
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).
17 EXENAME = groundfire
19 WIN32FLAGS = -mwindows -mcpu=i686 -O9 -fomit-frame-pointer -ffast-math
20 WIN32INCLUDE =
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
26 win32::
27 cd src ; $(MAKE) TARGET=$(EXENAME) "FLAGS=$(WIN32FLAGS)" "INCLUDE=$(WIN32INCLUDE)" "LIBS=$(WIN32LIBS)"
29 unix:
30 cd src ; $(MAKE) TARGET=$(EXENAME) "FLAGS=$(CFLAGS)" "INCLUDE=$(UNIXINCLUDE)" "LIBS=$(UNIXLIBS)"
32 clean:
33 rm -f $(EXENAME)*
34 cd src ; $(MAKE) clean
36 depend:
37 cd src ; $(MAKE) depend
39 all: clean depend
40 $(MAKE) win32