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 glcontext.c error.c window.c shader.c font.c text.c \ |
30 SRC = context.c glcontext.c error.c window.c shader.c font.c text.c \ |
31 texture.c scene.c camera.c primitives.c |
31 texture.c scene.c camera.c primitives.c mesh.c |
32 |
32 |
33 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
33 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
34 |
34 |
35 all: $(BUILD_DIR)/libascension.a FORCE |
35 all: $(BUILD_DIR)/libascension.a FORCE |
36 @echo "You have successfully ascended." |
36 @echo "You have successfully ascended." |
76 ascension/primitives.h ascension/mesh.h ascension/shader.h \ |
76 ascension/primitives.h ascension/mesh.h ascension/shader.h \ |
77 ascension/error.h |
77 ascension/error.h |
78 @echo "Compiling $<" |
78 @echo "Compiling $<" |
79 $(CC) -o $@ $(CFLAGS) -c $< |
79 $(CC) -o $@ $(CFLAGS) -c $< |
80 |
80 |
|
81 $(BUILD_DIR)/mesh.o: mesh.c ascension/mesh.h ascension/error.h |
|
82 @echo "Compiling $<" |
|
83 $(CC) -o $@ $(CFLAGS) -c $< |
|
84 |
81 $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \ |
85 $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \ |
82 ascension/mesh.h ascension/error.h ascension/context.h \ |
86 ascension/mesh.h ascension/error.h ascension/context.h \ |
83 ascension/datatypes.h ascension/window.h ascension/glcontext.h \ |
87 ascension/datatypes.h ascension/window.h ascension/glcontext.h \ |
84 ascension/primitives.h ascension/shader.h ascension/scene.h \ |
88 ascension/primitives.h ascension/shader.h ascension/scene.h \ |
85 ascension/transform.h ascension/camera.h ascension/texture.h \ |
89 ascension/transform.h ascension/camera.h ascension/texture.h \ |