src/Makefile

changeset 19
6a26114297a1
parent 10
1347e4dabac0
child 32
8a0b85303ee8
equal deleted inserted replaced
18:6008840b859e 19:6a26114297a1
33 SRC += input.c 33 SRC += input.c
34 SRC += server.c 34 SRC += server.c
35 SRC += client.c 35 SRC += client.c
36 SRC += game.c 36 SRC += game.c
37 37
38 SRC += rules/pawn.c
39 SRC += rules/rook.c
40 SRC += rules/knight.c
41 SRC += rules/bishop.c
42 SRC += rules/queen.c
43 SRC += rules/king.c
44
45 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT)) 38 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
46 39
47 all: $(OBJ) 40 all: $(OBJ)
48 $(LD) -o ../build/$(BIN) $^ $(LDFLAGS) 41 $(LD) -o ../build/$(BIN) $^ ../build/chess$(LIB_EXT) $(LDFLAGS)
49 42
50 43
51 ../build/%$(OBJ_EXT): %.c 44 ../build/%$(OBJ_EXT): %.c
52 $(CC) -o $@ $(CFLAGS) -c $< 45 $(CC) -o $@ $(CFLAGS) -c $<
53 46

mercurial