home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / xp / Makefile < prev    next >
Encoding:
Makefile  |  1998-04-08  |  2.1 KB  |  93 lines

  1. #!gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18. #  
  19.  
  20. DEPTH        = ../..
  21.  
  22. MODULE        = xp
  23. LIBRARY_NAME    = xp
  24.  
  25. CSRCS        = xp_alloc.c \
  26.           xp_cntxt.c \
  27.           xp_core.c \
  28.           xp_error.c \
  29.           xp_file.c \
  30.           xp_hash.c \
  31.           xp_list.c \
  32.           xp_md5.c \
  33.           xp_ncent.c \
  34.           xp_reg.c \
  35.           xp_rgb.c \
  36.           xp_qsort.c \
  37.           xp_sec.c \
  38.           xp_str.c \
  39.           xp_thrmo.c \
  40.           xp_time.c \
  41.           xp_trace.c \
  42.           xp_wrap.c \
  43.           xpassert.c \
  44.           xplocale.c \
  45.           $(NULL)
  46.  
  47. REQUIRES    = js nspr dbm security img util jtools layer java lay style pref rdf
  48.  
  49. CSRCS        += allxpstr.c xp_intl.c
  50.  
  51. ifeq ($(STAND_ALONE_JAVA),1)
  52. CSRCS        = xp_qsort.c
  53. endif
  54.  
  55. include $(DEPTH)/config/rules.mk
  56.  
  57. EMACS        = lemacs
  58.  
  59. AUDIO_FILES    = $(wildcard *.au)
  60. GIF_FILES    = $(wildcard *.gif)
  61. JPEG_FILES    = $(wildcard *.jpg)
  62.  
  63. GEN_OUT        = $(AUDIO_FILES:.au=.h) $(GIF_FILES:.gif=.h) $(JPEG_FILES:.jpg=.h)
  64.  
  65. #
  66. # Uncomment these to (re)generate the headers.
  67. #
  68. #GARBAGE        += $(GEN_OUT) $(wildcard *~)
  69. #
  70. #all:: $(GEN_OUT)
  71.  
  72. $(LIBRARY): $(OBJS)
  73.  
  74. #
  75. # Generate c header's for various binary files
  76. #
  77. .SUFFIXES: .au .gif .jpg
  78.  
  79. .au.h:
  80.     @echo generating $*.h from $<...; \
  81.     CNAME=`echo $*_au`; \
  82.     $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h
  83.  
  84. .gif.h:
  85.     @echo generating $*.h from $<...; \
  86.     CNAME=`echo $*_gif`; \
  87.     $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h
  88.  
  89. .jpg.h:
  90.     @echo generating $*.h from $<...; \
  91.     CNAME=`echo $*_jpg`; \
  92.     $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h
  93.