basic imake problem on cygwin

Steve Kelem s_kelem@pacbell.net
Tue May 4 18:19:00 GMT 2004


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) > $@




More information about the Cygwin-xfree mailing list