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