aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cfd0ecbc2a87f6c7d87af66ab8921ff387bda9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc
CFLAGS=-Wall -Wextra -Wpedantic -ggdb -fsanitize=address -std=c11
LIBS=
OBJECTS=main.o
OUT=obf.out
ARGS=

%.o: %.c
	$(CC) $(CFLAGS) -c $^ -o $@ $(LIBS)

$(OUT): $(OBJECTS)
	$(CC) $(CFLAGS) $^ -o $@ $(LIBS)

.PHONY:
clean:
	rm -rfv $(OUT) $(OBJECTS)

.PHONY: run
run: $(OUT)
	./$^ $(ARGS)