"$?" 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."
This commit is contained in:
William McBrine
2007-08-09 04:00:24 +00:00
parent fbc11bbe4b
commit fc97cea333
4 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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: \

View File

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

View File

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