home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / PGM / Imakefile < prev    next >
Makefile  |  1996-11-18  |  4KB  |  114 lines

  1. /* Imakefile for pgm tools
  2.  *
  3.  * Copyright (C) 1991 Rainer Klute
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and
  6.  * its documentation for any purpose is hereby granted without fee, provided
  7.  * that the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the copyright holder's name not be used in
  10.  * advertising or publicity pertaining to distribution of the software
  11.  * without specific, written prior permission. The copyright holder makes
  12.  * no representations about the suitability of this software for any
  13.  * purpose. It is provided "as is" without express or implied warranty.
  14.  */
  15.  
  16. #define LibPgm libpgm.a
  17. #define DepLibPgm LibPgm
  18. #include <../Pbmplus.tmpl>
  19.  
  20.    CURRENTLIBS = $(LIBPGM) $(LIBPBM)
  21. CURRENTDEPLIBS = $(DEPLIBPGM) $(DEPLIBPBM)
  22.      INCLUDES  = -I.. -I$(PBMDIR)
  23.          MERGE = pgmmerge
  24.  
  25.           MAN1 = asciitopgm.1 bioradtopgm.1 fstopgm.1 \
  26.          hipstopgm.1 lispmtopgm.1 pbmtopgm.1 \
  27.          pgmbentley.1 pgmenhance.1 pgmhist.1 pgmkernel.1 \
  28.          pgmnoise.1 pgmnorm.1 pgmoil.1 \
  29.          pgmramp.1 pgmtofs.1 pgmtolispm.1 pgmtopbm.1 \
  30.          psidtopgm.1 rawtopgm.1 spottopgm.1 \
  31.          pgmcrater.1 pgmedge.1 pgmtexture.1
  32.           MAN3 = libpgm.3
  33.           MAN5 = pgm.5
  34.  
  35.           SRCS = asciitopgm.c bioradtopgm.c fstopgm.c \
  36.          hipstopgm.c lispmtopgm.c pbmtopgm.c \
  37.          pgmbentley.c pgmenhance.c pgmhist.c pgmkernel.c \
  38.          pgmnoise.c pgmnorm.c pgmoil.c \
  39.          pgmramp.c pgmtofs.c pgmtolispm.c pgmtopbm.c \
  40.          psidtopgm.c rawtopgm.c spottopgm.c \
  41.          pgmcrater.c pgmedge.c pgmtexture.c
  42.  
  43.           OBJS = asciitopgm.o bioradtopgm.o fstopgm.o \
  44.          hipstopgm.o lispmtopgm.o pbmtopgm.o \
  45.          pgmbentley.o pgmenhance.o pgmhist.o pgmkernel.o \
  46.          pgmnoise.o pgmnorm.o pgmoil.o \
  47.          pgmramp.o pgmtofs.o pgmtolispm.o pgmtopbm.o \
  48.          psidtopgm.o rawtopgm.o spottopgm.o \
  49.          pgmcrater.o pgmedge.o pgmtexture.o
  50.  
  51.           BINS = asciitopgm bioradtopgm fstopgm \
  52.          hipstopgm lispmtopgm pbmtopgm \
  53.          pgmbentley pgmenhance pgmhist pgmkernel \
  54.          pgmnoise pgmnorm pgmoil \
  55.          pgmramp pgmtofs pgmtolispm pgmtopbm \
  56.          psidtopgm rawtopgm spottopgm \
  57.          pgmcrater pgmedge pgmtexture
  58.  
  59. AllTarget($(LIBPGM) $(BINS))
  60.  
  61. DependTarget()
  62.  
  63. NormalPbmplusProgramTarget(bioradtopgm)
  64. NormalPbmplusProgramTarget(asciitopgm)
  65. NormalPbmplusProgramTarget(fstopgm)
  66. NormalPbmplusProgramTarget(hipstopgm)
  67. NormalPbmplusProgramTarget(lispmtopgm)
  68. NormalPbmplusProgramTarget(pbmtopgm)
  69. NormalPbmplusProgramTarget(pgmbentley)
  70. NormalPbmplusProgramTarget(pgmenhance)
  71. NormalPbmplusProgramTarget(pgmhist)
  72. NormalPbmplusProgramTarget(pgmnoise)
  73. NormalPbmplusProgramTarget(pgmnorm)
  74. NormalPbmplusProgramTarget(pgmoil)
  75. NormalPbmplusProgramTarget(pgmramp)
  76. NormalPbmplusProgramTarget(pgmtofs)
  77. NormalPbmplusProgramTarget(pgmtolispm)
  78. NormalPbmplusProgramTarget(pgmtopbm)
  79. NormalPbmplusProgramTarget(psidtopgm)
  80. NormalPbmplusProgramTarget(spottopgm)
  81. NormalPbmplusMathProgramTarget(pgmkernel)
  82. NormalPbmplusMathProgramTarget(rawtopgm)
  83. NormalPbmplusMathProgramTarget(pgmcrater)
  84. NormalPbmplusMathProgramTarget(pgmedge)
  85. NormalPbmplusMathProgramTarget(pgmtexture)
  86.  
  87. NormalLibraryObjectRule()
  88. NormalLibraryTarget(pgm,libpgm1.o libpgm2.o)
  89.  
  90. #if InstallMerged
  91. NormalProgramTarget($(MERGE),$(MERGE).o $(OBJS),$(CURRENTDEPLIBS),$(CURRENTLIBS),-lm)
  92. #if InstallBinaries
  93. InstallProgram($(MERGE),$(PBMPLUSDIR)$(PBMPLUSBINDIR))
  94. #endif
  95. #endif
  96.  
  97. #if InstallBinaries
  98. InstallPbmplusPrograms($(BINS),$(PBMPLUSDIR)$(PBMPLUSBINDIR),$(INSTPGMFLAGS))
  99. #endif
  100.  
  101. #if InstallManuals
  102. InstallMultipleMan($(MAN1),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man1)
  103. InstallMultipleMan($(MAN3),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man3)
  104. InstallMultipleMan($(MAN5),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man5)
  105. #endif
  106.  
  107. #if InstallLibraries
  108. InstallLibrary(pgm,$(PBMPLUSDIR)$(PBMPLUSLIBDIR))
  109. #endif
  110.  
  111. #if InstallIncludes
  112. InstallMultipleFlags(pgm.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS))
  113. #endif
  114.