From 1e586acb37f21bbb3004dbb60180581e8b0ce13d Mon Sep 17 00:00:00 2001 From: fragsornotfrags Date: Thu, 3 Nov 2016 14:10:53 +0100 Subject: [PATCH] wrote makefile --- makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..85ebb08 --- /dev/null +++ b/makefile @@ -0,0 +1,27 @@ +ALL = asino.c +LOCPATH = ./bin +INSTALLPATH = /usr/local +LFLAGS = -lm +DEBFLAGS = -g -Wall + +all: + mkdir -p $(LOCPATH) + gcc $(ALL) -o $(LOCPATH)/asino $(LFLAGS) +debug: + mkdir -p $(LOCPATH)/debug + gcc $(ALL) -o $(LOCPATH)/debug/asino_debug $(LFLAGS) $(DEBFLAGS) +asan: + gcc $(ALL) -o $(LOCPATH)/debug/asino_debug_asan $(LFLAGS) $(DEBFLAGS) -fsanitize=address +clean: + rm $(LOCPATH)/asino + rm $(LOCPATH)/debug/asino_debug +distclean: + rm -r $(LOCPATH) +install: + cp $(LOCPATH)/asino $(INSTALLPATH)/bin/asino +uninstall: + rm $(INSTALLPATH)/bin/asino + + + +