This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: xc/config/cf/cygwin.rules - ComplexProgramTarget_1
- To: "Alexander Gottwald" <alexander dot gottwald at informatik dot tu-chemnitz dot de>
- Subject: RE: xc/config/cf/cygwin.rules - ComplexProgramTarget_1
- From: "Harold Hunt" <huntharo at msu dot edu>
- Date: Fri, 17 Aug 2001 14:20:29 -0400
- Cc: "cygx" <cygwin-xfree at cygwin dot com>, "Suhaib Siddiqi" <ssiddiqi at inspirepharm dot com>
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))