bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad
1
by Gustav Hartvigsson
Initial code. |
1 |
CC=gcc |
16
by Gustav Hartvigsson
* made the code compile. |
2 |
CFLAGS=`pkg-config sdl2 mozjs185 --cflags` -Wall -g -std=c11 |
3 |
LIBS=`pkg-config sdl2 mozjs185 --libs` |
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
4 |
|
5 |
DEPS=src/Game.h\ |
|
6 |
src/GameObject.h\ |
|
7 |
src/MousePointer.h\ |
|
8 |
src/game_utils.h\ |
|
16
by Gustav Hartvigsson
* made the code compile. |
9 |
src/GameObject.h\ |
10 |
src/JSParser.h\ |
|
11 |
src/DynamicArray.h
|
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
12 |
|
13 |
OBJECTS=obj/main.o\ |
|
14 |
obj/Game.o\ |
|
15 |
obj/GameButton.o\ |
|
16 |
obj/MousePointer.o\ |
|
17 |
obj/game_utils.o\ |
|
16
by Gustav Hartvigsson
* made the code compile. |
18 |
obj/GameObject.o\ |
19 |
obj/JSParser.o\ |
|
20 |
obj/DynamicArray.o
|
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
21 |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
22 |
EXEC=SdlJs |
1
by Gustav Hartvigsson
Initial code. |
23 |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
24 |
$(EXEC):$(OBJECTS) |
15
by Gustav Hartvigsson
* moved the files to ./src/ |
25 |
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) |
1
by Gustav Hartvigsson
Initial code. |
26 |
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
27 |
obj/%.o: src/%.c $(DEPS) |
1
by Gustav Hartvigsson
Initial code. |
28 |
$(CC) $(CFLAGS) -c -o $@ $< |
7
by Gustav Hartvigsson
* Added licensing information to the files. |
29 |
|
18
by Gustav Hartvigsson
* Fiddels with the Doxygen file to make the functions have the same order as |
30 |
.PHONY: clean run docs docs-latex |
31 |
.IGNORE: clean run docs docs-latex |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
32 |
|
33 |
clean: |
|
34 |
rm $(OBJECTS) |
|
35 |
rm $(EXEC) |
|
36 |
||
37 |
run: $(EXEC) |
|
38 |
exec ./$(EXEC) |
|
18
by Gustav Hartvigsson
* Fiddels with the Doxygen file to make the functions have the same order as |
39 |
|
40 |
docs: |
|
41 |
doxygen Doxygen |