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 >
Makefile  |  1993-12-06  |  1KB  |  46 lines

  1.  
  2. SRCS = main.c widgets.c callbacks.c read_write_plane.c Xshpl.c
  3.  
  4. OBJS = main.o widgets.o callbacks.o read_write_plane.o Xshpl.o
  5.  
  6. CONSTHEADER = shpl_const.h
  7.  
  8. LLVS_PL_HEADER = llvs_per_plane.h
  9.  
  10. WIDGETHEADER = widgets.h
  11.  
  12. CONSTFILE = shpl_const.dat
  13.  
  14. PROGRAM = XShowPlane
  15.  
  16. DEBUG = -O2
  17.  
  18. CC = gcc
  19.  
  20. # change the next two lines for the correct location of X11R5 and Motif
  21. # includes and libraries
  22. CFLAGS = $(DEBUG) -I/exp/rcf/share/X11R5/include -I/exp/rcf/share/X11R5/include/X11
  23. LDFLAGS = $(DEBUG) -L/exp/rcf/share/X11R5/lib -lXm -lXt -lX11
  24.  
  25. $(PROGRAM) : $(OBJS)
  26.     $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
  27.  
  28. main.o : main.c $(CONSTHEADER)
  29.     $(CC) $(CFLAGS) -DMAIN -c main.c -o main.o
  30.  
  31. widgets.o : widgets.c $(CONSTHEADER) $(LLVS_PL_HEADER)
  32.  
  33. callbacks.o : callbacks.c $(CONSTHEADER) $(LLVS_PL_HEADER)
  34.  
  35. Xshpl.o : Xshpl.c $(LLVS_PL_HEADER)
  36.  
  37. # change -DDECSTATION to
  38. # -DSUN for suns
  39. # -DSEQUENT for sequent
  40. # -DMIPS for sgi
  41. read_write_plane.o : read_write_plane.c llvs_per_plane.h llvs_plane.h
  42.     $(CC) $(CFLAGS) -DDECSTATION -I. -c read_write_plane.c -o read_write_plane.o
  43.  
  44. $(CONSTHEADER) : $(CONSTFILE)
  45.     parse-uil-constants $(CONSTFILE) $(CONSTHEADER) C
  46.