Merge pull request #1 from babab/master
Add install and clean targets to Makefile
This commit is contained in:
commit
905fa45ed2
1 changed files with 12 additions and 2 deletions
14
src/Makefile
14
src/Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue