Hey guys my make file is sorta working but i dont think its actually compiling properly could someone double check it because when i try compile this i get an error
Code:
int main(int argc, char *argv[])
if(argc==3 && !strcmp(argv[1], "menu"))
{
printf("Cannot find filename wrongly entered\n");
return ERRORCODE;
}
Code:
all: gjc.o gjc_utility.o gjc_options.o
gcc -gstabs -o gjc gjc.o gjc_utility.o gjc_options.o
gjc.o: gjc.c gjc.h
gcc -gstabs -Wall -ansi -pedantic -c gjc.c
gjc_options.o: gjc_options.c gjc_options.h
gcc -gstabs -Wall -ansi -pedantic -c gjc_options.c
gjc_utility.o: gjc_utility.c gjc_utility.h
gcc -gstabs -Wall -ansi -pedantic -c gjc_utility.c
clean:
rm gjc gjc.o gjc_options.o gjc_utility.o