prdirImakefileNotes050810.txt /* Above , '$(PRDIR)/$(*).c' selects current source file */ /* In $(*).c, parens are ESSENTIAL! -RJL050806 */ /* src/Imakefile Ptrn rules: $(OBJDIR)%.o : $(SRCDIR)%.cc */ /* $PR[N]LOG/Imakefile : $(PROBJDIR)%.o : $(PRDIR)%.c */ /*$(GENOBJS):$(GENSRCS) @@\ $(CC) -g -c -Wall $(GENDEFINES) $< -o $(@) @@\ [$(<) -o $(@)] works on mercury, not on saturn!-RJL050807] */ /* empty rule to cancel default rule: */ /* (*) does not include .c in CC command */ /* Pattern rule for gnu make only: don't forget '/': */ /* Didn't work on mercury: $(CC)...$(PRDIR)/%.c -o $(PROBJDIR)/%.o @@\ $(PRDIR)/%.c not found $(CC) ... $(<).c -o $(@) ($(PROBJDIR)/%.c not found - wrong dir'y) $(CC) -g -c -Wall $(