--- In [email protected], "Tyler Littlefield" <ty...@...> wrote: > > I'm building modules in separate directories, so I have something like: > O_FILES= module1/file1.o, MODULE2/file2.o > then I have: > O_FILES_A = file1.o file2.o > for the linking. > Is there a way I can do this with one line?
There's the notdir function eg. O_FILES_A = $(notdir $(O_FILES)) Is that what you meant? > I would also like to be able to test for the exit status; (if gcc fails just > exit without running the rest), etc. AFAIK if a command fails, the make stops, unless you've told it to do otherwise. Can you show what it's doing?
