summaryrefslogtreecommitdiff
path: root/Makefile
blob: fd618b5a95fbeeedaf85fe5d37a38b517cdc97b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFILES = $(shell find core/ -name "*.c")
OFILES = $(CFILES:.c=.o)
DFILES = $(CFILES:.c=.d)

CC = clang
CFLAGS = -Wall -pedantic -Ihead

.PHONY: all
all: bop

.PHONY: bop
bop: $(OFILES)
	$(CC) $(OFILES) -o $@

-include $(DFILES)
%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@