# # Makefile for the game of othello(6) # # Inge Wallin ingwa@isy.liu.se # # These variables will have to be changed prior to compilation to suit # your particular installation. BINDIR is the directory where the # executable will be placed on `make install'. MANDIR is the directory # to put the manual in and MANEXT is the extension the manual file name # will have in MANDIR. BINDIR = /usr/majestix/ida/ingwa/bin MANDIR = /usr/majestix/ida/ingwa/man/man6 MANEXT = 6 # Choose a C compiler and the compilation flags. CC = gcc -traditional #CFLAGS = -O -fstrength-reduce -fcombine-regs -fforce-mem \ # -fforce-addr -fomit-frame-pointer -finline-functions CFLAGS = -g -Wall #CC = cc #CFLAGS = -O # Choose a C compiler to link with. Sometimes you want to use one # compiler to compile with since it produces faster code and another # to link with since the first one doesn't produce executables with # shared libraries. This is the case with gcc and cc on the SUN. LINKCC = cc # Choose io package and corresponding libraries #IOOBJS = dumbterm.o #IOLIBS = IOOBJS = sunview.o textwindow.o IOLIBS = -lsuntool -lsunwindow -lpixrect # ************************************************************* # ******** DON'T CHANGE ANYTHING BELOW THIS LINE ******** # ************************************************************* SRCS = sqlist.c global.c othello.c thegame.c thegame2.c \ dumbterm.c sunview.c textwindow.c HDRS = sqlist.h global.h othello.h textwindow.h io.h GAMEOBJS = sqlist.o global.o othello.o thegame.o thegame2.o othello: $(GAMEOBJS) $(IOOBJS) $(LINKCC) -o othello $(GAMEOBJS) $(IOOBJS) $(LIBS) $(IOLIBS) testsqlist: testsqlist.o sqlist.o $(CC) $(CFLAGS) -o testsqlist testsqlist.o sqlist.o clean: rm -f *.o *~ core othello install: othello othello.man cp othello $(BINDIR) cp othello.man $(MANDIR)/othello.$(MANEXT) tags: etags $(SRCS) $(HDRS) lint: lint $(SRCS) shar: shar Makefile $(SRCS) $(HDRS) othello.6 > othello.shar wc: wc $(SRCS) $(HDRS) sqlist.o: sqlist.h testsqlist.o: sqlist.h othello.o: othello.h sqlist.h global.h io.h global.o: othello.h sqlist.h thegame.o: othello.h sqlist.h global.h io.h thagame2.o: othello.h dumbterm.o: othello.h sqlist.h global.h io.h sunview.o: textwindow.h othello.h global.h io.h textwindow.o: textwindow.h