Hi, some rules in my Makefiles are quite similar, but not the same. These rules i have to duplicate at the moment, for example:
$(OBJ_C): $(D_OBJ)/%.o : %.c $(CC) $(G) $(OPTS) -o $@ -c $< $(OBJ_CC): $(D_OBJ)/%.o : %.cc $(CXX) $(G) $(OPTS) -o $@ -c $< $(OBJ_J): $(D_OBJ)/%.o : %.java $(GCJ) $(G) $(OPTS) -o $@ -c $< $(OBJ_A): $(D_OBJ)/%.o : %.S $(AS) $(G) $(OPTS) -o $@ -mv850e -c $< Is there a way to apply parameters to the rules to write the basic rule behind this only once? Thanks for any hints, Torsten. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
