I want to have something like (of course, with far more rules, but I should be able to generalize from something that works for this):
OBJDIR = bin
TARGET1 = $(OBJDIR)/foo/target.tx TARGET2 = $(OBJDIR)/bar/target.tx
TARGET1: PROJ = foo TARGET2: PROJ = bar
SRCDIR = ../src/$(PROJ) SRCS: $(wildcard $(SRCDIR)/*.x) OBJS: $($(subst $(SRCDIR),$(OBJDIR),$(SRCS)):%.x=%.o)
all: $(TARGET1) $(TARGET2)
%.tx: $(OBJS) commands ... etc...
TIA,
-- Rahul Jain Random Walk Computing [EMAIL PROTECTED] 212-480-5820 ext. 394
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
