diff --git a/src/cmd/smlrc/Makefile b/src/cmd/smlrc/Makefile index ca96891..622c74b 100644 --- a/src/cmd/smlrc/Makefile +++ b/src/cmd/smlrc/Makefile @@ -1,12 +1,12 @@ TOPSRC = $(shell cd ../../..; pwd) include $(TOPSRC)/target.mk -#include $(TOPSRC)/cross.mk CFLAGS = -Os -Wall -DMIPS -DNO_ANNOTATIONS -DNO_PREPROCESSOR \ -DNO_PPACK -D_RETROBSD -D__SMALLER_C_SCHAR__ \ -D__SMALLER_C__ -D__SMALLER_C_32__ # For cross compile +#include $(TOPSRC)/cross.mk #CFLAGS = -Os -Wall -DMIPS -m32 #LDFLAGS = -m32 diff --git a/src/games/battlestar/Makefile b/src/games/battlestar/Makefile index 015edfa..95b526d 100644 --- a/src/games/battlestar/Makefile +++ b/src/games/battlestar/Makefile @@ -13,7 +13,7 @@ OBJS = battlestar.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \ _globals.o _dayfile.o _nightfile.o dayobjs.o nightobjs.o words.o \ curses.o doprnt.o -LIBS = +LIBS = -lc MAN = battlestar.0 MANSRC = battlestar.6 diff --git a/src/games/sail/Makefile b/src/games/sail/Makefile index ef28867..0602efb 100644 --- a/src/games/sail/Makefile +++ b/src/games/sail/Makefile @@ -12,7 +12,7 @@ CFLAGS += -Os -mips16 -Werror -Wall OBJS = main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \ dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \ assorted.o game.o globals.o misc.o parties.o sync.o version.o doprnt.o -LIBS = -lcurses -ltermcap +LIBS = -lcurses -ltermcap -lc MAN = sail.0 MANSRC = sail.6 diff --git a/src/games/trek/Makefile b/src/games/trek/Makefile index 2c2993a..90902a5 100644 --- a/src/games/trek/Makefile +++ b/src/games/trek/Makefile @@ -17,7 +17,7 @@ OBJS = abandon.o attack.o autover.o capture.o check_out.o checkcond.o ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \ shield.o snova.o srscan.o systemname.o torped.o utility.o \ visual.o warp.o win.o -LIBS = -lm +LIBS = -lm -lc MAN = trek.0 MANSRC = trek.6 diff --git a/src/games/trek/main.c b/src/games/trek/main.c index b9bec06..f7d9fb7 100644 --- a/src/games/trek/main.c +++ b/src/games/trek/main.c @@ -121,7 +121,7 @@ main(argc, argv) { long vect; /* extern FILE *f_log; */ - register char opencode; + /* register char opencode; */ int prio; register int ac; register char **av; @@ -132,7 +132,7 @@ main(argc, argv) av++; time(&vect); srand(vect); - opencode = 'w'; + /* opencode = 'w'; */ prio = PRIO; if (ioctl(1, TIOCGETP, &argp) == 0) { @@ -144,7 +144,7 @@ main(argc, argv) switch (av[0][1]) { case 'a': /* append to log file */ - opencode = 'a'; + /* opencode = 'a'; */ break; case 'f': /* set fast mode */