src/Makefile

changeset 29
1d001eb694dc
parent 21
1a47c57666f5
child 32
86468a71dd73
equal deleted inserted replaced
28:8acde7d27904 29:1d001eb694dc
41 41
42 FORCE: 42 FORCE:
43 43
44 $(BUILD_DIR)/context.o: context.c ascension/context.h \ 44 $(BUILD_DIR)/context.o: context.c ascension/context.h \
45 ascension/datatypes.h ascension/window.h ascension/primitives.h \ 45 ascension/datatypes.h ascension/window.h ascension/primitives.h \
46 ascension/mesh.h ascension/font.h ascension/error.h ascension/utils.h \ 46 ascension/mesh.h ascension/scene.h ascension/font.h ascension/error.h \
47 ascension/shader.h 47 ascension/utils.h ascension/shader.h
48 @echo "Compiling $<" 48 @echo "Compiling $<"
49 $(CC) -o $@ $(CFLAGS) -c $< 49 $(CC) -o $@ $(CFLAGS) -c $<
50 50
51 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/datatypes.h \ 51 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/datatypes.h \
52 ascension/window.h ascension/primitives.h ascension/mesh.h \ 52 ascension/window.h ascension/primitives.h ascension/mesh.h \
53 ascension/font.h ascension/error.h ascension/utils.h 53 ascension/scene.h ascension/font.h ascension/error.h ascension/utils.h
54 @echo "Compiling $<" 54 @echo "Compiling $<"
55 $(CC) -o $@ $(CFLAGS) -c $< 55 $(CC) -o $@ $(CFLAGS) -c $<
56 56
57 $(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h 57 $(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h
58 @echo "Compiling $<" 58 @echo "Compiling $<"
59 $(CC) -o $@ $(CFLAGS) -c $< 59 $(CC) -o $@ $(CFLAGS) -c $<
60 60
61 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ 61 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \
62 ascension/datatypes.h ascension/window.h ascension/primitives.h \ 62 ascension/datatypes.h ascension/window.h ascension/primitives.h \
63 ascension/mesh.h ascension/font.h ascension/error.h 63 ascension/mesh.h ascension/scene.h ascension/font.h ascension/error.h
64 @echo "Compiling $<" 64 @echo "Compiling $<"
65 $(CC) -o $@ $(CFLAGS) -c $< 65 $(CC) -o $@ $(CFLAGS) -c $<
66 66
67 $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \ 67 $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \
68 ascension/mesh.h ascension/error.h ascension/context.h \ 68 ascension/mesh.h ascension/error.h ascension/context.h \
69 ascension/datatypes.h ascension/window.h ascension/primitives.h \ 69 ascension/datatypes.h ascension/window.h ascension/primitives.h \
70 ascension/font.h 70 ascension/scene.h ascension/font.h
71 @echo "Compiling $<" 71 @echo "Compiling $<"
72 $(CC) -o $@ $(CFLAGS) -c $< 72 $(CC) -o $@ $(CFLAGS) -c $<
73 73
74 $(BUILD_DIR)/scene.o: scene.c ascension/scene.h ascension/error.h 74 $(BUILD_DIR)/scene.o: scene.c ascension/scene.h ascension/error.h
75 @echo "Compiling $<" 75 @echo "Compiling $<"
79 ascension/error.h 79 ascension/error.h
80 @echo "Compiling $<" 80 @echo "Compiling $<"
81 $(CC) -o $@ $(CFLAGS) -c $< 81 $(CC) -o $@ $(CFLAGS) -c $<
82 82
83 $(BUILD_DIR)/text.o: text.c ascension/text.h ascension/font.h \ 83 $(BUILD_DIR)/text.o: text.c ascension/text.h ascension/font.h \
84 ascension/datatypes.h ascension/context.h ascension/window.h \ 84 ascension/datatypes.h ascension/scene.h ascension/context.h \
85 ascension/primitives.h ascension/mesh.h ascension/error.h \ 85 ascension/window.h ascension/primitives.h ascension/mesh.h \
86 ascension/shader.h 86 ascension/error.h ascension/shader.h
87 @echo "Compiling $<" 87 @echo "Compiling $<"
88 $(CC) -o $@ $(CFLAGS) -c $< 88 $(CC) -o $@ $(CFLAGS) -c $<
89 89
90 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ 90 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
91 ascension/primitives.h ascension/mesh.h ascension/context.h \ 91 ascension/primitives.h ascension/mesh.h ascension/scene.h \
92 ascension/window.h ascension/font.h ascension/error.h ascension/utils.h 92 ascension/context.h ascension/window.h ascension/font.h \
93 ascension/error.h ascension/utils.h
93 @echo "Compiling $<" 94 @echo "Compiling $<"
94 $(CC) -o $@ $(CFLAGS) -c $< 95 $(CC) -o $@ $(CFLAGS) -c $<
95 96

mercurial