Added gitignore to ignore .o files and executable and made makefile
This commit is contained in:
parent
aed4d08f9d
commit
b3ae08e1ba
2 changed files with 8 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.o
|
||||||
|
prompt
|
6
Makefile
Normal file
6
Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
run: prompt.c mpc.o
|
||||||
|
cc -std=c99 -Wall prompt.c mpc.o -ledit -lm -o prompt
|
||||||
|
mpc:o mpc.c mpc.h
|
||||||
|
cc -std=c99 -Wall -lm -c mpc.c
|
||||||
|
clean:
|
||||||
|
rm *.o
|
Reference in a new issue