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