Merge pull request #1 from babab/master

Add install and clean targets to Makefile
This commit is contained in:
Tom Willemsen 2012-05-27 13:43:19 -07:00
commit 905fa45ed2

View file

@ -1,2 +1,12 @@
baps1: main.c CC = cc -Wall -Wextra
$(CC) -Wall -Wextra -lm main.c -o baps1 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