[bsdmake/pmake] Makefile Fun & Games
Probably an easy one for those in the know, but I've let myself get behind on Makefile theory...
Code:
# $Id: Makefile,v 1.2 2005/02/13 14:23:33 markzero Exp $ What would be the tidiest and most concise way of adding ExampleObjTest given the implicit '.c' target? Uh, perhaps not the best way to explain it. |
I can't believe that something so simple is so utterly impossible. This is driving me to complete frustration.
I have the unit-test ExampleTestObj.c, it relies on SWp_new.o and SWp_example_obj.o to compile and link. SWp_new.o relies on SWp_API_logerr.o to link sucessfully. I should not have to specify every single dependency for every single target as the list will get longer and longer and there appears to be no other way to do this. |
Took a different approach:
Code:
CC = cc |
All times are GMT -5. The time now is 10:21 PM. |