aboutsummaryrefslogtreecommitdiff
path: root/utilities/Makefile
blob: 684054a5723c03b98e52142ff4243cf0c2562d56 (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 -std=c11 -g -O2 -D_DEFAULT_SOURCE
LDFLAGS =
CFLAGS += $(shell pkg-config --cflags libsodium)
LDFLAGS += $(shell pkg-config --libs libsodium)

SOURCES = $(wildcard *.c)
TARGETS = $(SOURCES:.c=)


.PHONY: all clean

all: $(TARGETS)

clean:
	rm -f $(TARGETS)


$(TARGETS): %: %.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)