src/Makefile

changeset 6
302971e8599b
parent 3
1efd6da2ad53
child 7
9dd76cbd6c90
equal deleted inserted replaced
5:7e1196d551ff 6:302971e8599b
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 30 SRC = core.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."
36 36
37 $(BUILD_DIR)/libascension.a: $(OBJ) 37 $(BUILD_DIR)/libascension.a: $(OBJ)
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)/core.o: core.c ascension/core.h ascension/datatypes.h
44 ascension/utils.h 44 @echo "Compiling $<"
45 echo "Compiling $<"
46 $(CC) -o $@ $(CFLAGS) -c $< 45 $(CC) -o $@ $(CFLAGS) -c $<
47 46
47 $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/core.h \
48 ascension/datatypes.h
49 @echo "Compiling $<"
50 $(CC) -o $@ $(CFLAGS) -c $<
51

mercurial