aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: eb3eb28672da21ed172586b949601f03ac681448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=cc

FLAGS=-g -Wall -pedantic -Wextra -Wconversion\
	-Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts\
	-Wdisabled-optimization -Wimplicit -Wimport -Winline\
	-Winit-self -Wlong-long -Wmissing-braces\
	-Wmissing-field-initializers -Wparentheses -Wunreachable-code\
	-Wunused -Wunused-value -Wunused-variable -Wwrite-strings

OBJS=$(SOURCES:.c=.o)
SOURCES=$(wildcard *.c)
EXEC=ttfe

all: $(OBJS)
	$(CC) $(FLAGS) $(OBJS) -o $(EXEC)

%.o: %.c
	$(CC) -c $(FLAGS) $< -o $@


clean:
	rm -rf *.o
	rm $(EXEC)