stego.git

Makefile

espurr
# stego - chess engine
# Copyright (C) 2025 ArcNyxx <me@arcnyxx.net>
# see LICENCE file for licensing information

.POSIX:

include config.mk

SRC = attack.c bits.c move.c table.c
HED = attack.h bits.h move.h table.h stego.h
OBJ = $(SRC:.c=.o)

all: stego perft

$(OBJ): config.mk $(HED)

.c.o:
	$(CC) $(CFLAGS) -c $<

stego: $(OBJ) stego.c
	$(CC) $^ -o $@ $(LDFLAGS)

perft: $(OBJ) perft.c
	$(CC) $^ -o $@ $(LDFLAGS)

clean:
	rm -f stego perft $(OBJ)

.PHONY: all clean