i have 3 drivers,
bst:
gcc -o bst -D BST driver3.c parser.c bst.c common.c
ll2:
gcc -o ll2 -U BST driver2.c parser.c ll.c common.c
ll1:
gcc -o ll1 -U BST driver1.c parser.c ll.c common.c
i know this is fine and it works for what i am doing but i want to create object files. however if i do the following
commonbst.o:
gcc -D BST -Wall -ansi -pedantic -c common.c
commonll.o:
gcc -U BST -Wall -ansi -pedantic -c common.c
that to is also fine, however once either of them is compiled it creates a common.o which is now uptodate can i remove a objects file in complilton some how thanks