test/Makefile

changeset 35
674eb53c12f3
parent 33
e7ddb52facd3
child 37
8a8cc6725b48
equal deleted inserted replaced
34:45d29d7221cc 35:674eb53c12f3
27 27
28 BUILD_DIR=../build/test 28 BUILD_DIR=../build/test
29 LIB_ASCENSION=../build/lib/libascension.a 29 LIB_ASCENSION=../build/lib/libascension.a
30 CFLAGS += -I../src 30 CFLAGS += -I../src
31 31
32 all: $(BUILD_DIR)/sandbox FORCE 32 all: $(BUILD_DIR)/snake FORCE
33 @echo "Sandbox demo successfully built." 33 @echo "Demo game successfully built."
34 34
35 $(BUILD_DIR)/sandbox: $(BUILD_DIR)/sandbox.o $(LIB_ASCENSION) 35 $(BUILD_DIR)/snake: $(BUILD_DIR)/snake.o $(LIB_ASCENSION)
36 @echo "Linking executable..." 36 @echo "Linking snake..."
37 $(CC) $(LDFLAGS) -o $@ $^ 37 $(CC) $(LDFLAGS) -o $@ $^
38 38
39 $(LIB_ASCENSION): 39 $(LIB_ASCENSION):
40 test -f "$@" 40 test -f "$@"
41 41
42 FORCE: 42 FORCE:
43 43
44 $(BUILD_DIR)/sandbox.o: snake.c ../src/ascension/ascension.h \ 44 $(BUILD_DIR)/snake.o: snake.c ../src/ascension/ascension.h \
45 ../src/ascension/error.h ../src/ascension/context.h \ 45 ../src/ascension/error.h ../src/ascension/context.h \
46 ../src/ascension/datatypes.h ../src/ascension/window.h \ 46 ../src/ascension/datatypes.h ../src/ascension/window.h \
47 ../src/ascension/primitives.h ../src/ascension/mesh.h \ 47 ../src/ascension/primitives.h ../src/ascension/mesh.h \
48 ../src/ascension/scene.h ../src/ascension/transform.h \ 48 ../src/ascension/scene.h ../src/ascension/transform.h \
49 ../src/ascension/font.h ../src/ascension/shader.h \ 49 ../src/ascension/font.h ../src/ascension/shader.h \

mercurial