bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape
1
by Gustav Hartvigsson
Initial code. |
1 |
CC=gcc |
29
by Gustav Hartvigsson
* Fixed Makefile |
2 |
CFLAGS=`pkg-config sdl2 --cflags` -Wall -g -std=c11 |
3 |
LIBS=`pkg-config sdl2 --libs` -lm |
|
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\ |
|
24
by Gustav Hartvigsson
* it compiles... |
11 |
src/DynamicArray.h\ |
29
by Gustav Hartvigsson
* Fixed Makefile |
12 |
src/duktape.h\ |
13 |
src/Object.h\ |
|
14 |
src/defs.h\ |
|
15 |
src/utils.h
|
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
16 |
|
17 |
OBJECTS=obj/main.o\ |
|
18 |
obj/Game.o\ |
|
19 |
obj/GameButton.o\ |
|
20 |
obj/MousePointer.o\ |
|
21 |
obj/game_utils.o\ |
|
16
by Gustav Hartvigsson
* made the code compile. |
22 |
obj/GameObject.o\ |
23 |
obj/JSParser.o\ |
|
24
by Gustav Hartvigsson
* it compiles... |
24 |
obj/DynamicArray.o\ |
29
by Gustav Hartvigsson
* Fixed Makefile |
25 |
obj/duktape.o\ |
26 |
obj/Object.o\ |
|
27 |
obj/utils.o
|
|
15
by Gustav Hartvigsson
* moved the files to ./src/ |
28 |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
29 |
EXEC=SdlJs |
1
by Gustav Hartvigsson
Initial code. |
30 |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
31 |
$(EXEC):$(OBJECTS) |
15
by Gustav Hartvigsson
* moved the files to ./src/ |
32 |
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) |
1
by Gustav Hartvigsson
Initial code. |
33 |
|
22
by Gustav Hartvigsson
* Made it compile... again... |
34 |
obj/%.o: src/%.c $(DEPS) ./obj/ |
1
by Gustav Hartvigsson
Initial code. |
35 |
$(CC) $(CFLAGS) -c -o $@ $< |
7
by Gustav Hartvigsson
* Added licensing information to the files. |
36 |
|
22
by Gustav Hartvigsson
* Made it compile... again... |
37 |
./obj/: |
38 |
mkdir -p ./obj/ |
|
39 |
||
18
by Gustav Hartvigsson
* Fiddels with the Doxygen file to make the functions have the same order as |
40 |
.PHONY: clean run docs docs-latex |
41 |
.IGNORE: clean run docs docs-latex |
|
7
by Gustav Hartvigsson
* Added licensing information to the files. |
42 |
|
43 |
clean: |
|
44 |
rm $(OBJECTS) |
|
45 |
rm $(EXEC) |
|
46 |
||
47 |
run: $(EXEC) |
|
48 |
exec ./$(EXEC) |
|
18
by Gustav Hartvigsson
* Fiddels with the Doxygen file to make the functions have the same order as |
49 |
|
50 |
docs: |
|
51 |
doxygen Doxygen |