summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: df15d2e2591fb8083b19be604e19f9f6167c79c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TARGET=fcomp
SRC=fcomp.c
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic
REL_FLAGS=-O3
DBG_FLAGS=-Wall -g3
make:
	$(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(REL_FLAGS)

debug:
	$(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS) -fsanitize=address

noasan:
	$(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS)

.PHONY: clean

clean:
	rm -f *.o
	rm -f $(TARGET)