From 26d1f221761ba264906f215ed53f4f57ab0f9d06 Mon Sep 17 00:00:00 2001 From: Tslil Clingman Date: Thu, 25 Jun 2015 02:51:02 +0200 Subject: Init --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..419a264 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC=gcc +CFLAGS=-W --pedantic -Wall -std=c99 -D_GNU_SOURCE -O2 +LIBS=-lsodium +COMPILE=$(CC) $(CFLAGS) + +SRC = $(wildcard *.c) +OBJ = $(patsubst %.c, %.o, $(SRC)) +EXE = msr + +$(EXE): $(OBJ) + $(COMPILE) $(LIBS) -o $(EXE) $(OBJ) + +%.o: %.c + $(COMPILE) -c -o $@ $< + +clean: + $(RM) $(EXE) $(OBJ) nul + +check-syntax: + $(COMPILE) -o nul -S ${CHK_SOURCES} -- cgit v1.3.1