diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2015-06-25 02:51:02 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2015-06-25 02:51:02 +0200 |
| commit | 26d1f221761ba264906f215ed53f4f57ab0f9d06 (patch) | |
| tree | 7abd32ed3449e43d0b17ccee51e6b843bf63d759 /Makefile | |
Init
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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} |
