/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-05 18:46:44 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140105184644-7avawfjmlf0njm6c
* Added licensing information to the files.
* Started work on the JSParser
* Started work on a dynamic array (Untested).

TODO:
* Figure out how to actualy do the JS Parser.
* Firure out how to make the JS Parser interact with the game mainloop, or
  if I should just ditch the mainloop in the C code all together and just
  use JS to do the game stuffs.
    * The first alternative seems the hardest to implement, but would mean
      that it woud be less for the user of the pragram to do.
    * The second would mean less C code and perhaps less speed too.
      
      If I do the things in C I could, hypothetically, do threading later or
      pseudo threading with great effect/speed. Not that that is actually
      any problem on modern system, but non-blocking interaction is good from
      a usability perspective.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
CFLAGS=`pkg-config sdl2 --cflags` -Wall -g -std=c11
3
3
LIBS=`pkg-config sdl2 --libs`
4
4
OBJECTS=main.o Game.o GameButton.o MousePointer.o game_utils.o GameObject.o
 
5
EXEC=SdlJs
5
6
 
6
 
main:$(OBJECTS)
 
7
$(EXEC):$(OBJECTS)
7
8
        $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
8
9
 
9
10
%.o: %.c %.h
10
11
        $(CC) $(CFLAGS) -c -o $@ $< 
 
12
 
 
13
.PHONY: clean run
 
14
.IGNORE: clean run
 
15
 
 
16
clean:
 
17
        rm $(OBJECTS)
 
18
        rm $(EXEC)
 
19
 
 
20
run: $(EXEC)
 
21
        exec ./$(EXEC)