summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9c676893f682b280db572df1a7b7bf6acdcbdff4 (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) -lssl -lcrypto $(OFILES) -o $@

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