Question: C-programming. I can't get the following makefile to work, hope someone can help. Makefile: stack.h: stack2.c : MainStack.c : CC=gcc 2 CFLAGS-I 4 OBJMainStack.o stack2.o

C-programming.

I can't get the following makefile to work, hope someone can help.

Makefile:

C-programming. I can't get the following makefile to work, hope someone can

stack.h:

help. Makefile: stack.h: stack2.c : MainStack.c : CC=gcc 2 CFLAGS-I 4 OBJMainStack.o

stack2.c :

stack2.o 6 %"o: %,c $(DEPS) gcc-make-run: Cannot find 'run' target 3 DEPS

stack.h Target 'run' is not specified in Makefile Example 'run' target: run:

MainStack.c :

excutable $(ARGS) $(CC) -c -o $@ $.

CC=gcc 2 CFLAGS-I 4 OBJMainStack.o stack2.o 6 %"o: %,c $(DEPS) gcc-make-run: Cannot find 'run' target 3 DEPS stack.h Target 'run' is not specified in Makefile Example 'run' target: run: excutable $(ARGS) $(CC) -c -o $@ $.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!