home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / x / x11r6-ch / xpm-3.4 / xpm-3 / xpm-3.4c / lib / Makefile.noX < prev    next >
Makefile  |  1994-06-06  |  3KB  |  110 lines

  1. #
  2. #  Copyright (C) 1989-94 GROUPE BULL
  3. #
  4. #  Permission is hereby granted, free of charge, to any person obtaining a copy
  5. #  of this software and associated documentation files (the "Software"), to
  6. #  deal in the Software without restriction, including without limitation the
  7. #  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. #  sell copies of the Software, and to permit persons to whom the Software is
  9. #  furnished to do so, subject to the following conditions:
  10. #
  11. #  The above copyright notice and this permission notice shall be included in
  12. #  all copies or substantial portions of the Software.
  13. #
  14. #  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. #  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. #  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. #  GROUPE BULL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  18. #  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  19. #  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. #
  21. #  Except as contained in this notice, the name of GROUPE BULL shall not be
  22. #  used in advertising or otherwise to promote the sale, use or other dealings
  23. #  in this Software without prior written authorization from GROUPE BULL.
  24. #
  25.  
  26. #
  27. # XPM Makefile - Arnaud LE HORS
  28. #
  29.  
  30. CC = cc
  31. AR = ar r
  32. RANLIB = ranlib
  33. RM = rm -f
  34. # on sysV, define this as cp.
  35. INSTALL = install -c
  36. MKDIRHIER = mkdir
  37. LN = ln -s
  38.  
  39. CDEBUGFLAGS= -O
  40.  
  41. # if your system doesn't provide strcasecmp add -DNEED_STRCASECMP
  42. # if your system doesn't provide strdup add -DNEED_STRDUP
  43. # if your system doesn't provide pipe remove -DZPIPE
  44. DEFINES = -DZPIPE
  45.  
  46. DESTBINDIR=/usr/bin/X11
  47. DESTLIBDIR=/usr/lib/X11
  48. DESTINCLUDEDIR=/usr/include/X11
  49.  
  50. OBJS= data.o create.o misc.o rgb.o scan.o parse.o hashtab.o \
  51.       WrFFrP.o RdFToP.o CrPFrDat.o CrDatFrP.o \
  52.       WrFFrI.o RdFToI.o CrIFrDat.o CrDatFrI.o \
  53.       CrIFrBuf.o CrPFrBuf.o CrBufFrI.o CrBufFrP.o \
  54.       RdFToDat.o WrFFrDat.o \
  55.       Attrib.o CrIFrP.o CrPFrI.o Image.o Info.o RdFToBuf.o WrFFrBuf.o
  56.  
  57. CFLAGS= $(CDEBUGFLAGS) $(DEFINES)
  58.  
  59. all: ../X11/xpm.h libXpm.a
  60.  
  61. clean: 
  62.     $(RM) *.o libXpm.a
  63.  
  64. libXpm.a: $(OBJS)
  65.     $(AR) libXpm.a $(OBJS)
  66.     $(RANLIB) libXpm.a
  67.  
  68. install:
  69.     $(INSTALL) -m 0664 libXpm.a $(DESTLIBDIR)
  70.     cd $(DESTLIBDIR); $(RANLIB) libXpm.a
  71.     -mkdir $(DESTINCLUDEDIR)
  72.     -chmod ugo+rx $(DESTINCLUDEDIR)
  73.     $(INSTALL) -m 0444 xpm.h $(DESTINCLUDEDIR)
  74.  
  75. ../X11/xpm.h: xpm.h
  76.     @if [ -d ../X11 ]; then set +x; \
  77.     else (set -x; $(MKDIRHIER) ../X11); fi
  78.     $(RM) ../X11/xpm.h; \
  79.     $(LN) ../lib/xpm.h ../X11
  80.  
  81. # Other dependencies.
  82. CrBufFrI.o:  xpmP.h xpm.h
  83. CrBufFrP.o:  xpmP.h xpm.h
  84. CrDatFI.o:  xpmP.h xpm.h
  85. CrDatFP.o:  xpmP.h xpm.h
  86. CrIFrBuf.o:  xpmP.h xpm.h
  87. CrIFrDat.o:  xpmP.h xpm.h
  88. CrPFrBuf.o:  xpmP.h xpm.h
  89. CrPFrDat.o:  xpmP.h xpm.h
  90. RdFToDat.o:  xpmP.h xpm.h
  91. RdFToI.o:  xpmP.h xpm.h
  92. RdFToP.o:  xpmP.h xpm.h
  93. WrFFrDat.o:  xpmP.h xpm.h
  94. WrFFrI.o:  xpmP.h xpm.h
  95. WrFFrP.o:  xpmP.h xpm.h
  96. create.o:  xpmP.h xpm.h
  97. data.o:  xpmP.h xpm.h
  98. hashtab.o:  xpmP.h xpm.h
  99. misc.o:  xpmP.h xpm.h
  100. parse.o:  xpmP.h xpm.h
  101. rgb.o:  xpmP.h xpm.h
  102. scan.o:  xpmP.h xpm.h
  103. Attrib.o:  xpmP.h xpm.h
  104. CrIFrP.o:  xpmP.h xpm.h
  105. CrPFrI.o:  xpmP.h xpm.h
  106. Image.o:  xpmP.h xpm.h
  107. Info.o:  xpmP.h xpm.h
  108. RdFToBuf.o:  xpmP.h xpm.h
  109. WrFFrBuf.o:  xpmP.h xpm.h
  110.