From 6b324d0fd06f5194ba26bb4d0423298df303cee2 Mon Sep 17 00:00:00 2001 From: stitchy Date: Wed, 15 Nov 2023 11:50:56 +0000 Subject: [PATCH] Fix makefile --- smallsh/makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/smallsh/makefile b/smallsh/makefile index 1065191..7b5a128 100644 --- a/smallsh/makefile +++ b/smallsh/makefile @@ -1,14 +1,8 @@ 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 +all: main.c main.h + $(CC) main.c -o $(output) test: all ./p3testscript 2>&1