Fix makefile

This commit is contained in:
stitchy 2023-11-15 11:50:56 +00:00
parent 05a7de5f61
commit 6b324d0fd0
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8

View file

@ -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