make it so

This commit is contained in:
2017-09-18 09:06:18 +02:00
commit 465f405cd1
4 changed files with 80 additions and 0 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
TARGET=862
BUILDDIR=bin/
PREFIX=/usr/local/bin/
MAIN=main.c
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wuninitialized -pedantic -std=gnu11
all: main.c
mkdir -p $(BUILDDIR)
$(CC) $(MAIN) -o $(BUILDDIR)$(TARGET) $(CFLAGS)
install: all
install $(BUILDDIR)$(TARGET) $(PREFIX)$(TARGET)
uninstall:
rm -rf $(PREFIX)$(TARGET)