13 lines
284 B
Makefile
13 lines
284 B
Makefile
all: main
|
|
|
|
CC = gcc
|
|
override CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-unused-result -Wno-unknown-pragmas -pedantic -lm
|
|
|
|
main: main.c
|
|
$(CC) $(CFLAGS) -O1 ./*.c -o "$@"
|
|
|
|
main-debug: main.c
|
|
$(CC) $(CFLAGS) -O1 -g ./*.c -o "$@"
|
|
|
|
clean:
|
|
rm -f main main-*
|