From fc97cea333917ab6181786bc0466bc995bc37b9b Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 9 Aug 2007 04:00:24 +0000 Subject: [PATCH] "$?" doesn't really have the desired effect -- _all_ the dependencies show up on the command line, including curses.h, and pdcurses.a twice. And apparently, this can mess up some old version (?) of MinGW. So, revert to spelling out "tuidemo.o tui.o". Reported by "Howard L." --- dos/gccdos.mak | 2 +- os2/gccos2.mak | 2 +- win32/gccwin32.mak | 2 +- win32/mingwin32.mak | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dos/gccdos.mak b/dos/gccdos.mak index 7b060d8e..1ea16a8b 100644 --- a/dos/gccdos.mak +++ b/dos/gccdos.mak @@ -81,7 +81,7 @@ ptest.exe: %.exe: $(demodir)/%.c $(CC) $(CFLAGS) -o$@ $< $(LIBCURSES) tuidemo.exe: tuidemo.o tui.o - $(LINK) $(LDFLAGS) -o$@ $? $(LIBCURSES) + $(LINK) $(LDFLAGS) -o$@ tuidemo.o tui.o $(LIBCURSES) tui.o: $(demodir)/tui.c $(demodir)/tui.h $(PDCURSES_CURSES_H) $(CC) -c $(CFLAGS) -I$(demodir) -o$@ $< diff --git a/os2/gccos2.mak b/os2/gccos2.mak index e772b2e9..11cba1e8 100644 --- a/os2/gccos2.mak +++ b/os2/gccos2.mak @@ -122,7 +122,7 @@ ptest.exe: %.exe: %.o $(EXEPOST) tuidemo.exe: tuidemo.o tui.o - $(LINK) $(LDFLAGS) -o tuidemo $? $(LIBCURSES) $(CCLIBS) + $(LINK) $(LDFLAGS) -o tuidemo tuidemo.o tui.o $(LIBCURSES) $(CCLIBS) $(TUIPOST) firework.o newdemo.o ptest.o rain.o testcurs.o worm.o xmas.o: %.o: \ diff --git a/win32/gccwin32.mak b/win32/gccwin32.mak index 844032d1..8d153520 100644 --- a/win32/gccwin32.mak +++ b/win32/gccwin32.mak @@ -98,7 +98,7 @@ ptest.exe: %.exe: $(demodir)/%.c $(CC) $(CFLAGS) -o$@ $< $(LIBCURSES) tuidemo.exe: tuidemo.o tui.o - $(LINK) $(LDFLAGS) -o$@ $? $(LIBCURSES) + $(LINK) $(LDFLAGS) -o$@ tuidemo.o tui.o $(LIBCURSES) tui.o: $(demodir)/tui.c $(demodir)/tui.h $(PDCURSES_CURSES_H) $(CC) -c $(CFLAGS) -I$(demodir) -o$@ $< diff --git a/win32/mingwin32.mak b/win32/mingwin32.mak index fffacba2..40ec8a0d 100644 --- a/win32/mingwin32.mak +++ b/win32/mingwin32.mak @@ -98,7 +98,7 @@ ptest.exe: %.exe: $(demodir)/%.c $(CC) $(CFLAGS) -o$@ $< $(LIBCURSES) tuidemo.exe: tuidemo.o tui.o - $(LINK) $(LDFLAGS) -o$@ $? $(LIBCURSES) + $(LINK) $(LDFLAGS) -o$@ tuidemo.o tui.o $(LIBCURSES) tui.o: $(demodir)/tui.c $(demodir)/tui.h $(PDCURSES_CURSES_H) $(CC) -c $(CFLAGS) -I$(demodir) -o$@ $<