| 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 font.c |
30 SRC = context.c error.c window.c font.c files.c shader.c |
| 31 |
31 |
| 32 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
32 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) |
| 33 |
33 |
| 34 all: $(BUILD_DIR)/libascension.a FORCE |
34 all: $(BUILD_DIR)/libascension.a FORCE |
| 35 @echo "You have successfully ascended." |
35 @echo "You have successfully ascended." |
| 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 ascension/window.h \ |
| 44 ascension/datatypes.h ascension/font.h ascension/error.h \ |
44 ascension/datatypes.h ascension/font.h ascension/error.h \ |
| 45 ascension/utils.h |
45 ascension/utils.h ascension/shader.h |
| 46 @echo "Compiling $<" |
46 @echo "Compiling $<" |
| 47 $(CC) -o $@ $(CFLAGS) -c $< |
47 $(CC) -o $@ $(CFLAGS) -c $< |
| 48 |
48 |
| 49 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \ |
49 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \ |
| 50 ascension/datatypes.h ascension/font.h ascension/error.h \ |
50 ascension/datatypes.h ascension/font.h ascension/error.h \ |
| 51 ascension/utils.h |
51 ascension/utils.h |
| 52 @echo "Compiling $<" |
52 @echo "Compiling $<" |
| 53 $(CC) -o $@ $(CFLAGS) -c $< |
53 $(CC) -o $@ $(CFLAGS) -c $< |
| 54 |
54 |
| |
55 $(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h |
| |
56 @echo "Compiling $<" |
| |
57 $(CC) -o $@ $(CFLAGS) -c $< |
| |
58 |
| 55 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ |
59 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ |
| 56 ascension/window.h ascension/datatypes.h ascension/font.h \ |
60 ascension/window.h ascension/datatypes.h ascension/font.h \ |
| |
61 ascension/error.h |
| |
62 @echo "Compiling $<" |
| |
63 $(CC) -o $@ $(CFLAGS) -c $< |
| |
64 |
| |
65 $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ |
| 57 ascension/error.h |
66 ascension/error.h |
| 58 @echo "Compiling $<" |
67 @echo "Compiling $<" |
| 59 $(CC) -o $@ $(CFLAGS) -c $< |
68 $(CC) -o $@ $(CFLAGS) -c $< |
| 60 |
69 |
| 61 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ |
70 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ |