src/Makefile

changeset 7
9dd76cbd6c90
parent 6
302971e8599b
child 11
d83af80eb09b
equal deleted inserted replaced
6:302971e8599b 7:9dd76cbd6c90
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 = core.c window.c 30 SRC = context.c error.c window.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."
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)/core.o: core.c ascension/core.h ascension/datatypes.h 43 $(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \
44 ascension/datatypes.h ascension/utils.h
44 @echo "Compiling $<" 45 @echo "Compiling $<"
45 $(CC) -o $@ $(CFLAGS) -c $< 46 $(CC) -o $@ $(CFLAGS) -c $<
46 47
47 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/core.h \ 48 $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \
48 ascension/datatypes.h 49 ascension/datatypes.h ascension/error.h ascension/utils.h
49 @echo "Compiling $<" 50 @echo "Compiling $<"
50 $(CC) -o $@ $(CFLAGS) -c $< 51 $(CC) -o $@ $(CFLAGS) -c $<
51 52
53 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
54 ascension/context.h ascension/window.h ascension/error.h
55 @echo "Compiling $<"
56 $(CC) -o $@ $(CFLAGS) -c $<
57

mercurial