This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
basic imake problem on cygwin
- From: Steve Kelem <s_kelem at pacbell dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 04 May 2004 11:14:43 -0700
- Subject: basic imake problem on cygwin
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: steve at kelem dot net
There seems to be a disconnect in the generated Makefile on cygwin. I
searched the mailing list archives, but wasn't able to find anything
relevant.
With the following Imakefile, my AllTarget is "hello", as the Imakefile
is supposed to be portable, and not know about cygwin's .exe extension
for the compiled binary.
SRCS = hello.c
AllTarget(hello)
NormalProgramTarget(hello,hello.o,NullParameter,NullParameter,NullParameter)
DependTarget()
The relevant portion of the generated Makefile is as follows. There is
no connection between the top target (all), and hello.exe.
Thanks for your help,
Steve
P.S. Please respond directly to me at s t e v e a t k e l e m d o t n e t.
# start of Imakefile
SRCS = hello.c
all:: hello
hello.exe: hello.o
$(RM) $@
$(CCLINK) -o $@ $(LDOPTIONS) hello.o $(LDLIBS) $(EXTRA_LOAD_FLAGS)
cleandir::
$(RM) hello.exe
depend:: Makefile.dep
Makefile.dep::
$(RM) $@
$(DEPEND) -f- $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) --
$(SRCS) > $@