Fix makefile
This commit is contained in:
parent
05a7de5f61
commit
6b324d0fd0
1 changed files with 2 additions and 8 deletions
|
@ -1,14 +1,8 @@
|
||||||
CC=gcc --std=gnu99 -g
|
CC=gcc --std=gnu99 -g
|
||||||
output=smallsh
|
output=smallsh
|
||||||
|
|
||||||
all: main.c main.h node.o input.o
|
all: main.c main.h
|
||||||
$(CC) main.c node.o input.o -o $(output)
|
$(CC) main.c -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
|
test: all
|
||||||
./p3testscript 2>&1
|
./p3testscript 2>&1
|
||||||
|
|
Loading…
Reference in a new issue