home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
Software
/
universal_plane_file_format
/
NewXShowPlane
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-12-06
|
1KB
|
46 lines
SRCS = main.c widgets.c callbacks.c read_write_plane.c Xshpl.c
OBJS = main.o widgets.o callbacks.o read_write_plane.o Xshpl.o
CONSTHEADER = shpl_const.h
LLVS_PL_HEADER = llvs_per_plane.h
WIDGETHEADER = widgets.h
CONSTFILE = shpl_const.dat
PROGRAM = XShowPlane
DEBUG = -O2
CC = gcc
# change the next two lines for the correct location of X11R5 and Motif
# includes and libraries
CFLAGS = $(DEBUG) -I/exp/rcf/share/X11R5/include -I/exp/rcf/share/X11R5/include/X11
LDFLAGS = $(DEBUG) -L/exp/rcf/share/X11R5/lib -lXm -lXt -lX11
$(PROGRAM) : $(OBJS)
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
main.o : main.c $(CONSTHEADER)
$(CC) $(CFLAGS) -DMAIN -c main.c -o main.o
widgets.o : widgets.c $(CONSTHEADER) $(LLVS_PL_HEADER)
callbacks.o : callbacks.c $(CONSTHEADER) $(LLVS_PL_HEADER)
Xshpl.o : Xshpl.c $(LLVS_PL_HEADER)
# change -DDECSTATION to
# -DSUN for suns
# -DSEQUENT for sequent
# -DMIPS for sgi
read_write_plane.o : read_write_plane.c llvs_per_plane.h llvs_plane.h
$(CC) $(CFLAGS) -DDECSTATION -I. -c read_write_plane.c -o read_write_plane.o
$(CONSTHEADER) : $(CONSTFILE)
parse-uil-constants $(CONSTFILE) $(CONSTHEADER) C