home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / x11p-13.zip / Imakefile < prev    next >
Makefile  |  1991-05-09  |  2KB  |  80 lines

  1. #ifndef X11perfcompLib
  2. #define X11perfcompLib $(LIBDIR)/x11perfcomp
  3. #endif
  4.  
  5.         PERFLIB = X11perfcompLib
  6.         HELPERS = fillblnk perfboth perfratio
  7.        PROGRAMS = x11perf x11perf_labels x11perfcomp $(HELPERS)
  8.         HEADERS = bitmaps.h x11perf.h
  9.            SRCS = bitmaps.c do_arcs.c do_complex.c do_copyarea.c \
  10.               do_dots.c do_lines.c do_movewin.c do_rects.c \
  11.           do_segs.c do_simple.c do_tests.c do_text.c \
  12.           do_traps.c do_triangles.c do_valgc.c \
  13.           do_windows.c x11perf.c
  14.            OBJS = bitmaps.o do_arcs.o do_complex.o do_copyarea.o \
  15.              do_dots.o do_lines.o do_movewin.o do_rects.o \
  16.           do_segs.o do_simple.o do_tests.o do_text.o \
  17.           do_traps.o do_triangles.o do_valgc.o \
  18.           do_windows.o x11perf.o
  19. #ifdef TAR
  20. LOCAL_LIBRARIES =
  21.         DEPLIBS = 
  22.   SYS_LIBRARIES = -lXext -lX11 -lm
  23. #else
  24. LOCAL_LIBRARIES = $(XLIB)
  25.         DEPLIBS = $(DEPXLIB)
  26.   SYS_LIBRARIES = -lm
  27. #endif
  28.  
  29. #        DEFINES = -DVERSION1.3 -DMITSHM -DKANJI
  30.         DEFINES = -DVERSION1.3 -DMITSHM
  31.  
  32.         
  33. ComplexProgramTarget(x11perf)
  34.  
  35. all:: x11perf_labels x11perfcomp $(HELPERS)
  36.  
  37. install:: $(PERFLIB)
  38.  
  39. CppScriptTarget(x11perfcomp,x11pcomp.cpp,-DLIBPATH=$(PERFLIB),$(ICONFIGFILE))
  40. CppScriptTarget(fillblnk,fillblnk.cpp, /**/, /**/)
  41. CppScriptTarget(perfboth,perfboth.cpp, /**/, /**/)
  42. CppScriptTarget(perfratio,perfratio.cpp, /**/, /**/)
  43.  
  44. InstallProgram(x11perfcomp,$(BINDIR))
  45. InstallProgram(perfboth,$(PERFLIB))
  46. InstallProgram(perfratio,$(PERFLIB))
  47. InstallProgram(fillblnk,$(PERFLIB))
  48.  
  49. InstallManPage(x11perfcomp.man,$(MANDIR))
  50.  
  51. x11perf_labels: x11perf
  52.     ./x11perf -labels -all > x11perf_labels
  53.  
  54. # These guys depend upon $DEFINES from Imakefile
  55.  
  56. do_copyarea.o:    Imakefile
  57. do_tests.o:    Imakefile
  58. do_text.o:    Imakefile
  59.  
  60.  
  61. clean::
  62.     $(RM) $(PROGRAMS)
  63.  
  64. $(PERFLIB):
  65.     $(MKDIRHIER) $(PERFLIB)
  66.  
  67. tarMakefile:
  68.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -DTAR
  69.  
  70. tar:    $(DEPEND)
  71.     -rm -f x11perf.tar x11perf.tar.Z
  72.     mv Makefile Makefile.bak
  73.     make tarMakefile -f Makefile.bak
  74.     $(DEPEND) -s "# DO NOT DELETE" -- -- $(SRCS)
  75.     tar chf x11perf.tar Imakefile Makefile $(HEADERS) $(SRCS) \
  76.         x11perf_labels *.man *.cpp $(HELPERS) RCS \
  77.         link.com link.options make.com;
  78.     mv Makefile.bak Makefile
  79.     compress x11perf.tar
  80.