When you don't specify a target on the command line, make assumes that you want to build the target for the first rule in the file. Since:

exception.o: $(EXCEPTION_H)
    $(CC) $(JMECFLAGS) -c $(EXCEPTION_C)

is the first rule, that is all it creates.

What most folks do is to create a phony target "all" which depends on the file(s) that you want to create by default as the first rule in the file:

all : my_app

This will have the effect of trying to make my_app, which will trigger the other rules and so forth down the line until make has come up with a sequence of commands to run.

Mike Gibson



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to