#### # # This file provides generic rule defintions for use in project Makefiles. The # purpose of this file is to be included at or near the end of a # platform-specific project Makefile (but, of course, above the dependencies # generated by makedepend). Seach for all occurrances of "CHANGE HERE" for # definitions that may require project-, user-, or platform-specific changes. # # There is a companion to this file named Makefile.vars, q.v. This file # (.rules) and the .vars file are separated since this file should be included # at or near the end of a platform-specific Makefile, while the .vars file # should be included at or near the top of the platform-specific Makefile. # # Note that definitions in this .rules file use Makefile variables that are # assumed to have been defined in the companion .vars file, which should have # been included in the same Makefile that includes this file. # # # Use a %-style rule to generically define the dependency relationship between # all .o and .C files. With this rule, no individual .o/.C dependency rules # need to be written. # %.o: ../%.C $(CC) $(CFLAGS) -c $< # # Define a generic makedepend rule. NOTE: The DEPENDSRCS variable must have # been defined in the Makefile that includes this Makefile.rules. # depend: $(DEPENDSRCS) makedepend $(DEPENDFLAGS) $(AM_CFLAGS) $^ clean: /bin/rm -f $(PROJECTNAME) *.o *.a