commiting_from_my_own_personal_shell
This commit is contained in:
parent
3daf9ab37d
commit
ac6dbe8cd7
5 changed files with 210 additions and 0 deletions
17
smallsh/makefile
Normal file
17
smallsh/makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
CC=gcc --std=gnu99 -g
|
||||
output=smallsh
|
||||
|
||||
all: main.c main.h node.o input.o
|
||||
$(CC) main.c node.o input.o -o $(output)
|
||||
|
||||
node.o: node.c node.h
|
||||
$(CC) -c node.c -o node.o
|
||||
|
||||
input.o: input.h input.c
|
||||
$(CC) -c input.c -o input.o
|
||||
|
||||
test: all
|
||||
./p3testscript
|
||||
|
||||
clean:
|
||||
rm -fr *.o vgcore.* $(output)
|
Loading…
Add table
Add a link
Reference in a new issue