matrix/Makefile
2020-03-16 09:20:23 -04:00

29 lines
356 B
Makefile

all: build
CC=gcc
STD=gnu99
OPT=-Os
DBG=-g -ggdb -gstabs
OTHER=
CMD=$(CC) $(DBG) -std=$(STD) $(OPT) $(OPT)
LINK=-lncurses
FINBIN=bin/main.o
install: build ;
cp $(FINBIN) /usr/local/bin/
build:
$(CMD) ./src/main.c $(LINK) -o ./bin/matrix
valgrind: build ;
valgrind ./$(FINBIN)
clean:
rm -rf ./bin/*
clean-logs:
rm ./vgcore.*
rm ./massif.out.*