From: <no...@so...> - 2001-12-11 21:06:51
|
Bugs item #491549, was opened at 2001-12-11 05:46 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=491549&group_id=2435 Category: binutils Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: make doesn't work Initial Comment: The Makefile in the attachment works well with Cygwin's make while MinGW shows the following error- message: MinGW_make: *** No rule to make target `make_test.a (make_test.o)', needed by `make_test.a'. Stop. both make.exe are GNU Make Version 3.79.1 MinGW_make_test.zip contains the following files: Makefile : Makefile that produces the error make_test.c : Simple Source processed by Makefile Cygwin_make.exe : Copy of Cygwin's make.exe MinGW_make.exe : Copy of MinGW's make.exe README.txt : This description Copy of the Makefile: # EXECUTABLE NAME(S) GIVEN BELOW EXEFILE = make_test # TARGETLIBRARY NAME GIVEN BELOW TARGETLIB= make_test.a # OBJECTS GIVEN BELOW OBJMAIN = make_test.o OBJS= $(TARGETLIB)($(OBJMAIN)) #------------------------------------------ $(EXEFILE): $(TARGETLIB) $(AR) -x $(TARGETLIB) $(OBJMAIN) $(CC) -o $@ $(OBJMAIN) $(TARGETLIB) $(RM) $(OBJMAIN) $(TARGETLIB): $(OBJS) @echo library $(TARGETLIB) is now up-to-date ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2001-12-11 13:06 Message: Logged In: YES user_id=11494 with your example, I get make: Circular make_test.a <- make_test.a dependency dropped. make: *** No rule to make target `(make_test.o', needed by `make_test.a'. Stop. with both cygwin amd mingw builds of make. If i change OBJS= $(TARGETLIB)($(OBJMAIN)) to OBJS= $(TARGETLIB)$(OBJMAIN) I get succesful make on both, with the warning about circular dependency. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=491549&group_id=2435 |