38 @echo "Creating library..." |
38 @echo "Creating library..." |
39 $(AR) $(ARFLAGS) $@ $^ |
39 $(AR) $(ARFLAGS) $@ $^ |
40 |
40 |
41 FORCE: |
41 FORCE: |
42 |
42 |
43 $(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \ |
43 $(BUILD_DIR)/context.o: context.c ascension/context.h \ |
44 ascension/datatypes.h ascension/font.h ascension/error.h \ |
44 ascension/datatypes.h ascension/window.h ascension/primitives.h \ |
45 ascension/utils.h ascension/shader.h |
45 ascension/mesh.h ascension/font.h ascension/error.h ascension/utils.h \ |
|
46 ascension/shader.h |
46 @echo "Compiling $<" |
47 @echo "Compiling $<" |
47 $(CC) -o $@ $(CFLAGS) -c $< |
48 $(CC) -o $@ $(CFLAGS) -c $< |
48 |
49 |
49 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \ |
50 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/datatypes.h \ |
50 ascension/datatypes.h ascension/font.h ascension/error.h \ |
51 ascension/window.h ascension/primitives.h ascension/mesh.h \ |
51 ascension/utils.h |
52 ascension/font.h ascension/error.h ascension/utils.h |
52 @echo "Compiling $<" |
53 @echo "Compiling $<" |
53 $(CC) -o $@ $(CFLAGS) -c $< |
54 $(CC) -o $@ $(CFLAGS) -c $< |
54 |
55 |
55 $(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h |
56 $(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h |
56 @echo "Compiling $<" |
57 @echo "Compiling $<" |
57 $(CC) -o $@ $(CFLAGS) -c $< |
58 $(CC) -o $@ $(CFLAGS) -c $< |
58 |
59 |
59 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ |
60 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ |
60 ascension/window.h ascension/datatypes.h ascension/font.h \ |
61 ascension/datatypes.h ascension/window.h ascension/primitives.h \ |
61 ascension/error.h |
62 ascension/mesh.h ascension/font.h ascension/error.h |
|
63 @echo "Compiling $<" |
|
64 $(CC) -o $@ $(CFLAGS) -c $< |
|
65 |
|
66 $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \ |
|
67 ascension/mesh.h ascension/error.h ascension/context.h \ |
|
68 ascension/datatypes.h ascension/window.h ascension/primitives.h \ |
|
69 ascension/font.h |
62 @echo "Compiling $<" |
70 @echo "Compiling $<" |
63 $(CC) -o $@ $(CFLAGS) -c $< |
71 $(CC) -o $@ $(CFLAGS) -c $< |
64 |
72 |
65 $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ |
73 $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ |
66 ascension/error.h |
74 ascension/error.h |
67 @echo "Compiling $<" |
75 @echo "Compiling $<" |
68 $(CC) -o $@ $(CFLAGS) -c $< |
76 $(CC) -o $@ $(CFLAGS) -c $< |
69 |
77 |
70 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ |
78 $(BUILD_DIR)/text.o: text.c ascension/text.h ascension/font.h \ |
71 ascension/context.h ascension/window.h ascension/font.h \ |
79 ascension/datatypes.h ascension/context.h ascension/window.h \ |
72 ascension/error.h ascension/utils.h |
80 ascension/primitives.h ascension/mesh.h ascension/error.h \ |
|
81 ascension/shader.h |
73 @echo "Compiling $<" |
82 @echo "Compiling $<" |
74 $(CC) -o $@ $(CFLAGS) -c $< |
83 $(CC) -o $@ $(CFLAGS) -c $< |
75 |
84 |
|
85 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ |
|
86 ascension/primitives.h ascension/mesh.h ascension/context.h \ |
|
87 ascension/window.h ascension/font.h ascension/error.h ascension/utils.h |
|
88 @echo "Compiling $<" |
|
89 $(CC) -o $@ $(CFLAGS) -c $< |
|
90 |