Created
June 3, 2011 06:48
-
-
Save joseph-montanez/1005976 to your computer and use it in GitHub Desktop.
Vala Pong Makefile for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PKGS = \ | |
--pkg gee-1.0 \ | |
--pkg gsl \ | |
--pkg sdl \ | |
--pkg sdl-mixer \ | |
--pkg sdl-image \ | |
--pkg gl \ | |
--pkg glu | |
LIBS = \ | |
-X -LC:\Windows\System32 \ | |
-X -IC:\cygwin\usr\include\w32api \ | |
-X -IC:\vala-0.12.0\include\SDL \ | |
-X -IC:\SDL-1.2.14\include \ | |
-X -lgsl \ | |
-X -lgdi32 \ | |
-X -lmingw32 \ | |
-X -lSDLmain \ | |
-X -mwindows \ | |
-X -lSDL \ | |
-X -lopengl32 \ | |
-X -lglu32 | |
FLAGS = -v -g --vapidir=vapi | |
FILES = \ | |
src/ball.vala \ | |
src/darkcore/collision.vala \ | |
src/darkcore/engine.vala \ | |
src/darkcore/event.vala \ | |
src/darkcore/keystate.vala \ | |
src/darkcore/sprite/text.vala \ | |
src/darkcore/sprite.vala \ | |
src/darkcore/texture.vala \ | |
src/darkcore.vala \ | |
src/darkcore/vector.vala \ | |
src/main.vala \ | |
src/paddle.vala | |
all: $(FILES) | |
valac $(FLAGS) $(LIBS) $(PKGS) -o main $(FILES) | |
./main | |
clean: | |
find . -type f -name "*.so" -exec rm -f {} \; | |
find . -type f -name "*.a" -exec rm -f {} \; | |
find . -type f -name "*.o" -exec rm -f {} \; | |
find . -type f -name "*.h" -exec rm -f {} \; | |
find . -type f -name "*.c" -exec rm -f {} \; | |
rm main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment