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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
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 queens rabin_karp
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
build_rabin_karp: rabin_karp.c
|
|
|
|
$(CC) $(CFLAGS) rabin_karp.c -o rabin_karp
|
|
|
|
rabin_karp_run: rabin_karp
|
|
|
|
./rabin_karp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(EXECS)
|