| 29 |
29 |
| 30 SRC = context.c glcontext.c filesystem.c error.c \ |
30 SRC = context.c glcontext.c filesystem.c error.c \ |
| 31 window.c shader.c mesh.c texture.c \ |
31 window.c shader.c mesh.c texture.c \ |
| 32 sprite.c 2d.c \ |
32 sprite.c 2d.c \ |
| 33 camera.c scene.c scene_node.c behavior.c \ |
33 camera.c scene.c scene_node.c behavior.c \ |
| 34 font.c text.c |
34 ui.c font.c text.c |
| 35 |
35 |
| 36 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
36 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
| 37 |
37 |
| 38 all: $(BUILD_DIR)/libascension.a FORCE |
38 all: $(BUILD_DIR)/libascension.a FORCE |
| 39 @echo "You have successfully ascended." |
39 @echo "You have successfully ascended." |
| 158 ascension/camera.h ascension/input.h ascension/ui/font.h \ |
158 ascension/camera.h ascension/input.h ascension/ui/font.h \ |
| 159 ascension/texture.h ascension/filesystem.h |
159 ascension/texture.h ascension/filesystem.h |
| 160 @echo "Compiling $<" |
160 @echo "Compiling $<" |
| 161 $(CC) -o $@ $(CFLAGS) -c $< |
161 $(CC) -o $@ $(CFLAGS) -c $< |
| 162 |
162 |
| |
163 $(BUILD_DIR)/ui.o: ui.c ascension/ui.h ascension/ui/text.h \ |
| |
164 ascension/ui/font.h ascension/ui/../sprite.h \ |
| |
165 ascension/ui/../scene_node.h ascension/ui/../datatypes.h \ |
| |
166 ascension/ui/../transform.h ascension/ui/../mesh.h \ |
| |
167 ascension/ui/../texture.h ascension/ui/../camera.h ascension/context.h \ |
| |
168 ascension/datatypes.h ascension/window.h ascension/glcontext.h \ |
| |
169 ascension/scene.h ascension/scene_node.h ascension/camera.h \ |
| |
170 ascension/input.h ascension/ui/font.h ascension/scene.h |
| |
171 @echo "Compiling $<" |
| |
172 $(CC) -o $@ $(CFLAGS) -c $< |
| |
173 |
| 163 $(BUILD_DIR)/window.o: window.c ascension/error.h ascension/window.h \ |
174 $(BUILD_DIR)/window.o: window.c ascension/error.h ascension/window.h \ |
| 164 ascension/datatypes.h ascension/glcontext.h ascension/scene.h \ |
175 ascension/datatypes.h ascension/glcontext.h ascension/scene.h \ |
| 165 ascension/scene_node.h ascension/transform.h ascension/camera.h \ |
176 ascension/scene_node.h ascension/transform.h ascension/camera.h \ |
| 166 ascension/context.h ascension/window.h ascension/input.h \ |
177 ascension/context.h ascension/window.h ascension/input.h \ |
| 167 ascension/ui/font.h |
178 ascension/ui/font.h |