You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
386 B
Makefile
17 lines
386 B
Makefile
2 years ago
|
CC=gcc
|
||
|
CFLAGS=-Wall -lm -Wall -Werror=sign-compare -Werror=array-bounds -Werror=maybe-uninitialized -Werror=unused-parameter -Werror=maybe-uninitialized -Werror=cast-qual
|
||
|
|
||
|
EXECS=knight
|
||
|
|
||
|
build_knight: knight.c
|
||
|
$(CC) $(CFLAGS) knight.c -o knight
|
||
|
knight_run: knight
|
||
|
./knight
|
||
|
|
||
|
build_queens: queens.c
|
||
|
$(CC) $(CFLAGS) queens.c -o queens
|
||
|
queens_run: queens
|
||
|
./queens
|
||
|
clean:
|
||
|
rm -f $(EXECS)
|