CCOPS = -Wall -pedantic -ansi

main: main.o history.o
	gcc $(CCOPS) -o myshell main.o history.o

main.o: main.c history.h
	gcc $(CCOPS) -c main.c

testhist: testhist.o history.o
	gcc $(CCOPS) -o testhist testhist.o history.o

testhist.o: testhist.c history.h
	gcc $(CCOPS) -c testhist.c

history.o: history.c history.h
	gcc $(CCOPS) -c history.c

testexec: testexec.o exec.o
	gcc $(CCOPS) -o testexec testexec.o exec.o


testexec.o: testexec.c exec.h
	gcc $(CCOPS) -c testexec.c 

exec.o: exec.c exec.h
	gcc $(CCOPS) -c exec.c

clean:
	rm *.o *~
