src/chess/Makefile

changeset 71
0bdb910478cc
parent 58
7ba8a97a8b6e
child 72
7e58e0f74e50
--- a/src/chess/Makefile	Tue Aug 13 00:33:59 2019 +0200
+++ b/src/chess/Makefile	Sun Oct 01 12:53:35 2023 +0200
@@ -26,25 +26,19 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
-include ../../conf.mk
+include ../../config.mk
 
-SRC += pawn.c
-SRC += rook.c
-SRC += knight.c
-SRC += bishop.c
-SRC += queen.c
-SRC += king.c
-SRC += rules.c
-SRC += pgn.c
+SRC = pawn.c rook.c knight.c bishop.c queen.c king.c \
+      rules.c pgn.c
 
 OBJ = $(SRC:%.c=$(BUILDDIR)/%$(OBJ_EXT))
 
 all: $(BUILDDIR) $(OBJ)
-	$(AR) $(ARFLAGS) $(BUILDDIR)/chess$(LIB_EXT) $(OBJ)
+	$(AR) $(ARFLAGS) $(BUILDDIR)/libchess$(LIB_EXT) $(OBJ)
 
 $(BUILDDIR)/%$(OBJ_EXT): %.c
 	$(CC) -o $@ $(CFLAGS) -c $<
 	
 $(BUILDDIR):
 	$(MKDIR) $(MKDIRFLAGS) $(BUILDDIR)
-	
\ No newline at end of file
+	

mercurial