2016-11-07 19:20:01 +01:00
|
|
|
ALL = src/asino.c
|
2016-11-03 14:10:53 +01:00
|
|
|
LOCPATH = ./bin
|
|
|
|
INSTALLPATH = /usr/local
|
|
|
|
LFLAGS = -lm
|
2016-11-07 19:20:01 +01:00
|
|
|
DEBFLAGS = -g -Wall -Wextra -pedantic
|
2016-11-03 14:10:53 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|