mirror of
https://github.com/FraMecca/Buridans_donkey.git
synced 2024-03-20 11:20:15 +01:00
wrote makefile
This commit is contained in:
parent
1d9062cad5
commit
1e586acb37
1 changed files with 27 additions and 0 deletions
27
makefile
Normal file
27
makefile
Normal file
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue