14 lines
313 B
Makefile
14 lines
313 B
Makefile
CC=gcc
|
|
SRC = fish.c insects.c vector.c main.c
|
|
CFLAGS= -Wall -Wextra -Werror
|
|
LDFLAGS= -fsanitize=address -g
|
|
# Computes the basic main for tests
|
|
main: ${SRC}
|
|
gcc $(CFLAGS) $^ -o main -lm
|
|
|
|
#Check for memory errors/leaks and to use gdb
|
|
debug: ${SRC}
|
|
gcc $(CFLAGS) $^ -o debug $(LDFLAGS)
|
|
|
|
clean:
|
|
$(RM) main debug
|