src/Makefile

changeset 50
d8d2e4817db1
parent 49
77493525eac2
child 61
b7954818a6b7
equal deleted inserted replaced
49:77493525eac2 50:d8d2e4817db1
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 files.c shader.c font.c text.c \ 30 SRC = context.c glcontext.c error.c window.c files.c shader.c font.c text.c \
31 scene.c camera.c primitives.c 31 texture.c scene.c camera.c primitives.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."
100 @echo "Compiling $<" 100 @echo "Compiling $<"
101 $(CC) -o $@ $(CFLAGS) -c $< 101 $(CC) -o $@ $(CFLAGS) -c $<
102 102
103 $(BUILD_DIR)/text.o: text.c ascension/ui/text.h ascension/ui/font.h \ 103 $(BUILD_DIR)/text.o: text.c ascension/ui/text.h ascension/ui/font.h \
104 ascension/ui/../scene.h ascension/ui/../datatypes.h \ 104 ascension/ui/../scene.h ascension/ui/../datatypes.h \
105 ascension/ui/../transform.h ascension/ui/../camera.h ascension/context.h \ 105 ascension/ui/../transform.h ascension/ui/../camera.h \
106 ascension/datatypes.h ascension/window.h ascension/glcontext.h \ 106 ascension/ui/../texture.h ascension/context.h ascension/datatypes.h \
107 ascension/primitives.h ascension/mesh.h ascension/shader.h \ 107 ascension/window.h ascension/glcontext.h ascension/primitives.h \
108 ascension/scene.h ascension/ui/font.h ascension/error.h \ 108 ascension/mesh.h ascension/shader.h ascension/scene.h \
109 ascension/shader.h 109 ascension/ui/font.h ascension/error.h ascension/shader.h
110 @echo "Compiling $<"
111 $(CC) -o $@ $(CFLAGS) -c $<
112
113 $(BUILD_DIR)/texture.o: texture.c ascension/texture.h ascension/error.h
110 @echo "Compiling $<" 114 @echo "Compiling $<"
111 $(CC) -o $@ $(CFLAGS) -c $< 115 $(CC) -o $@ $(CFLAGS) -c $<
112 116
113 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ 117 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
114 ascension/glcontext.h ascension/primitives.h ascension/mesh.h \ 118 ascension/glcontext.h ascension/primitives.h ascension/mesh.h \

mercurial