diff --git a/src/Makefile b/src/Makefile index b9611a0..25056d4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,2 +1,12 @@ -baps1: main.c - $(CC) -Wall -Wextra -lm main.c -o baps1 +CC = cc -Wall -Wextra +INST_PATH = /usr/local/bin + +baps1: main.o + $(CC) -o baps1 main.o -lm + +main.o: main.c + $(CC) -c main.c +install: baps1 + cp baps1 $(INST_PATH)/baps1 +clean: + rm baps1 *.o