This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xc/config/cf/cygwin.rules - ComplexProgramTarget_1


Alexander,

> for gnumake:
> 	PROGRAMS_EXE=$(foreach prog,$(PROGRAMS),$(prog).exe)

That worked perfectly, you solved the problem.

Below is the new ComplexProgramTarget_1 rule.

Harold



/*
 * ComplexProgramTarget_1 - Imake.rules doesn't wrap the program names
 * with ProgramTargetName(), so we need this rule for Cygwin.
 */

#define ComplexProgramTarget_1(program,locallib,syslib)			@@\
  OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) \			@@\
         $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9) $(OBJS10)			@@\
  SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5) \			@@\
         $(SRCS6) $(SRCS7) $(SRCS8) $(SRCS9) $(SRCS10)			@@\
  PROGS_EXE = $(foreach prog,$(PROGRAMS),ProgramTargetName($(prog)))	@@\
									@@\
AllTarget($(PROGS_EXE))							@@\
									@@\
ProgramTargetHelper(program,SRCS1,OBJS1,DEPLIBS1,locallib,syslib)	@@\
									@@\
DependTarget()								@@\
LintTarget()								@@\
									@@\
clean::									@@\
	RemoveFiles($(PROGS_EXE))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]