24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 # POSSIBILITY OF SUCH DAMAGE. |
26 # POSSIBILITY OF SUCH DAMAGE. |
27 # |
27 # |
28 |
28 |
29 include ../../conf.mk |
29 include ../../config.mk |
30 |
30 |
31 SRC += pawn.c |
31 SRC = pawn.c rook.c knight.c bishop.c queen.c king.c \ |
32 SRC += rook.c |
32 rules.c pgn.c |
33 SRC += knight.c |
|
34 SRC += bishop.c |
|
35 SRC += queen.c |
|
36 SRC += king.c |
|
37 SRC += rules.c |
|
38 SRC += pgn.c |
|
39 |
33 |
40 OBJ = $(SRC:%.c=$(BUILDDIR)/%$(OBJ_EXT)) |
34 OBJ = $(SRC:%.c=$(BUILDDIR)/%$(OBJ_EXT)) |
41 |
35 |
42 all: $(BUILDDIR) $(OBJ) |
36 all: $(BUILDDIR) $(OBJ) |
43 $(AR) $(ARFLAGS) $(BUILDDIR)/chess$(LIB_EXT) $(OBJ) |
37 $(AR) $(ARFLAGS) $(BUILDDIR)/libchess$(LIB_EXT) $(OBJ) |
44 |
38 |
45 $(BUILDDIR)/%$(OBJ_EXT): %.c |
39 $(BUILDDIR)/%$(OBJ_EXT): %.c |
46 $(CC) -o $@ $(CFLAGS) -c $< |
40 $(CC) -o $@ $(CFLAGS) -c $< |
47 |
41 |
48 $(BUILDDIR): |
42 $(BUILDDIR): |