diff options
Diffstat (limited to 'utilities/Makefile')
-rw-r--r-- | utilities/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utilities/Makefile b/utilities/Makefile new file mode 100644 index 0000000..684054a --- /dev/null +++ b/utilities/Makefile @@ -0,0 +1,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) |