mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
"$?" 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:
@@ -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$@ $<
|
||||
|
||||
@@ -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: \
|
||||
|
||||
@@ -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$@ $<
|
||||
|
||||
@@ -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$@ $<
|
||||
|
||||
Reference in New Issue
Block a user