A4: main.o testA4.o helper.o miscFunctions.o queueFunctions.o headerA4.h
gcc -Wall -std=c99 main.o testA4.o helper.o miscFunctions.o queueFunctions.o
main.o: main.c headerA4.h
gcc -Wall -std=c99 -c main.c -o main.o
testA4.o: testA4.c headerA4.h
gcc -Wall -std=c99 -c testA4.c -o testA4.o
helper.o: helper.c headerA4.h
gcc -Wall -std=c99 -c helper.c -o helper.o
miscFunctions.o: miscFunctions.c headerA4.h
gcc -Wall -std=c99 -c miscFunctions.c -o miscFunctions.o
queueFunctions.o: queueFunctions.c headerA4.h
gcc -Wall -std=c99 -c queueFunctions.c -o queueFunctions.o
clean:
rm *.o
This is my make file but when I compile it this happens-
zali05@ginny:~/A4$ make
gcc -Wall -std=c99 main.o testA4.o helper.o miscFunctions.o queueFunctions.o
zali05@ginny:~/A4$ A4
bash: A4: command not found
zali05@ginny:~/A4$ A4:
bash: A4:: command not found
zali05@ginny:~/A4$ ./A4
bash: ./A4: No such file or directory
zali05@ginny:~/A4$ ./a.out
Begining A4 Program Testing...
Creating Initial List...
Enter a username:
It works with ./a.out