tomwalters@0: #------------------------------------------------------------------------- tomwalters@0: # tomwalters@0: # Copyright (c) Applied Psychology Unit, Medical Research Council. 1993 tomwalters@0: # =========================================================================== tomwalters@0: # Permission to use, copy, modify, and distribute this software without fee tomwalters@0: # is hereby granted for research purposes, provided that this copyright tomwalters@0: # notice appears in all copies and in all supporting documentation, and that tomwalters@0: # the software is not redistributed for any fee (except for a nominal tomwalters@0: # shipping charge). Anyone wanting to incorporate all or part of this tomwalters@0: # software in a commercial product must obtain a license from the Medical tomwalters@0: # Research Council. tomwalters@0: # tomwalters@0: # The MRC makes no representations about the suitability of this tomwalters@0: # software for any purpose. It is provided "as is" without express or tomwalters@0: # implied warranty. tomwalters@0: # tomwalters@0: # THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING tomwalters@0: # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL tomwalters@0: # THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES tomwalters@0: # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, tomwalters@0: # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, tomwalters@0: # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS tomwalters@0: # SOFTWARE. tomwalters@0: # tomwalters@0: #------------------------------------------------------------------------- tomwalters@0: # tomwalters@0: # makefile for xreview tomwalters@0: # tomwalters@0: # M.Akeroyd. Christmas 1993. tomwalters@0: # tomwalters@0: # Revisions: MAA & mitch d'souza: autumn 1993: tomwalters@0: # changed the definition of 'CC' so that it would work on tomwalters@0: # Sparc/Openwindows/gcc: seems the -Bstatic gest rid of a tomwalters@0: # well-known Sun bug, and the -Xlinker stops it looking in tomwalters@0: # the default lib location /usr/local/lib tomwalters@0: # Also added lots of extra libs (Xext, Xt, m), again so as tomwalters@0: # to work under Sparc/Openwindows/gcc. tomwalters@0: # tomwalters@0: #-------------------------------------------------------------------------- tomwalters@0: tomwalters@0: # linux 386 pc tomwalters@0: #CC = gcc tomwalters@0: #CFLAGS= -DHOST_LINUXPC -O -I/usr/local/X386/include -L/usr/local/X386/lib tomwalters@0: #LIBS = -lXmu -lX11 tomwalters@0: tomwalters@0: # Sparc (NOT openwindows) tomwalters@0: #CC = gcc tomwalters@0: ###CFLAGS= -O -I/usr/local2/include -L/usr/local2/lib tomwalters@0: #LIBS = -lXmu -lX11 tomwalters@0: tomwalters@0: # Sparc & Openwindows tomwalters@0: #CC = gcc -Xlinker -Bstatic tomwalters@0: #CFLAGS = -O -s -I/usr/openwin/include -L/usr/openwin/lib tomwalters@0: #LIBS = -lXt -lXext -lXmu -lX11 -lm tomwalters@0: tomwalters@0: # DECstation 3100 tomwalters@0: #CC = gcc tomwalters@0: #CFLAGS= -DHOST_DECSTATION -O -I/usr/local2/include -L/usr/local2/lib tomwalters@0: #LIBS = -lXmu -lX11 tomwalters@0: tomwalters@0: #-------------------------------------------------------------------------- tomwalters@0: tomwalters@0: TARFILE = xreview.tar tomwalters@0: tomwalters@0: all: synthirn xreview tomwalters@0: tomwalters@0: clean: tomwalters@0: rm -f *.o xreview $(TARFILE) tomwalters@0: tomwalters@0: tidy: tomwalters@0: rm -f *.o tomwalters@0: tomwalters@0: tar: tomwalters@0: tar cvf $(TARFILE) cartoon.c initialise.c buttons.c graphics.c \ tomwalters@0: switch_control.c switch_axes.c switch_buttons.c xreview.c \ tomwalters@0: xreview.h xreview.bitmap stipple_a disclaimer.text releasenotes.text \ tomwalters@0: makefile synthirn.c tomwalters@0: tomwalters@0: #-------------------------------------------------------------------------- tomwalters@0: synthirn: synthirn.o tomwalters@0: $(CC) -o synthirn synthirn.o -lm tomwalters@0: tomwalters@0: synthirn.o: synthirn.c tomwalters@0: $(CC) -c synthirn.c tomwalters@0: tomwalters@0: synthdramp: synthdramp.o tomwalters@0: $(CC) -o synthdramp synthdramp.o -lm tomwalters@0: tomwalters@0: synthdramp.o: synthdramp.c tomwalters@0: $(CC) -c synthdramp.c tomwalters@0: tomwalters@0: xreview: cartoon.o initialise.o buttons.o graphics.o \ tomwalters@0: switch_control.o switch_axes.o switch_buttons.o \ tomwalters@0: xreview.h xreview.bitmap stipple_a \ tomwalters@0: xreview.o tomwalters@0: $(CC) $(CFLAGS) -o xreview \ tomwalters@0: cartoon.o initialise.o buttons.o graphics.o \ tomwalters@0: switch_control.o switch_axes.o switch_buttons.o \ tomwalters@0: xreview.o $(LDFLAGS) tomwalters@0: tomwalters@0: cartoon.o: cartoon.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c cartoon.c tomwalters@0: tomwalters@0: initialise.o: initialise.c xreview.h xreview.bitmap stipple_a tomwalters@0: $(CC) $(CFLAGS) -c initialise.c tomwalters@0: tomwalters@0: buttons.o: buttons.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c buttons.c tomwalters@0: tomwalters@0: graphics.o: graphics.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c graphics.c tomwalters@0: tomwalters@0: switch_control.o: switch_control.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c switch_control.c tomwalters@0: tomwalters@0: switch_axes.o: switch_axes.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c switch_axes.c tomwalters@0: tomwalters@0: switch_buttons.o: switch_buttons.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c switch_buttons.c tomwalters@0: tomwalters@0: xreview.o: xreview.c xreview.h tomwalters@0: $(CC) $(CFLAGS) -c xreview.c tomwalters@0: tomwalters@0: #-------------------------------------------------------------------------- tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: