| 25 |
25 |
| 26 include ../config.mk |
26 include ../config.mk |
| 27 |
27 |
| 28 BUILD_DIR=../build/lib |
28 BUILD_DIR=../build/lib |
| 29 |
29 |
| 30 SRC = context.c error.c window.c files.c shader.c font.c text.c primitives.c |
30 SRC = context.c error.c window.c files.c shader.c font.c text.c scene.c \ |
| |
31 primitives.c |
| 31 |
32 |
| 32 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
33 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
| 33 |
34 |
| 34 all: $(BUILD_DIR)/libascension.a FORCE |
35 all: $(BUILD_DIR)/libascension.a FORCE |
| 35 @echo "You have successfully ascended." |
36 @echo "You have successfully ascended." |
| 68 ascension/datatypes.h ascension/window.h ascension/primitives.h \ |
69 ascension/datatypes.h ascension/window.h ascension/primitives.h \ |
| 69 ascension/font.h |
70 ascension/font.h |
| 70 @echo "Compiling $<" |
71 @echo "Compiling $<" |
| 71 $(CC) -o $@ $(CFLAGS) -c $< |
72 $(CC) -o $@ $(CFLAGS) -c $< |
| 72 |
73 |
| |
74 $(BUILD_DIR)/scene.o: scene.c ascension/scene.h ascension/error.h |
| |
75 @echo "Compiling $<" |
| |
76 $(CC) -o $@ $(CFLAGS) -c $< |
| |
77 |
| 73 $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ |
78 $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ |
| 74 ascension/error.h |
79 ascension/error.h |
| 75 @echo "Compiling $<" |
80 @echo "Compiling $<" |
| 76 $(CC) -o $@ $(CFLAGS) -c $< |
81 $(CC) -o $@ $(CFLAGS) -c $< |
| 77 |
82 |