summaryrefslogtreecommitdiff
path: root/Makefile
blob: aa9ed139bf73c28f3b0a6a2f991d4e0b98b2e6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC=clang
CFLAGS=-Wfatal-errors -Wall -Werror -Wextra -g -O2
CFLAGS_TESTBIN=-Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address
TARGET=7ed
TESTTARGET=7ed-TESTING

all: 7ed
7ed:
	$(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c -o $(TARGET)
	
clean:
	rm -f $(TARGET)
	rm -f test/$(TESTTARGET)

tests:
	$(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c -o test/$(TESTTARGET)