home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / js / src / actra.mk next >
Encoding:
Makefile  |  1998-04-08  |  2.2 KB  |  101 lines

  1. #! gmake
  2.  
  3. #
  4. # Since everyone seems to need to have their own build configuration
  5. #   system these days, this is yet another makefile to build JavaScript.
  6. #   This makefile conforms to the NSPR20 build rules.  If you have built
  7. #   NSPR20 this will build JS and stick the lib and bin files over in 
  8. #   the dist area created by NSPR (which is different from the dist 
  9. #   expected by the client and also the dist expected by LiveWire, but
  10. #   don't get me started).
  11. #
  12. # I don't currently know enough about what sort of JS-engine the Actra
  13. #   projects are going to expect so I don't know if we need to add
  14. #   to CFLAGS for -DJS_THREADSAFE or -DJSFILE 
  15. #
  16.  
  17. MOD_DEPTH = ../../nspr20
  18.  
  19. include $(MOD_DEPTH)/config/config.mk
  20.  
  21. INCLUDES = -I$(DIST)/include
  22. CFLAGS += -DNSPR20
  23.  
  24. CSRCS = prmjtime.c \
  25.           jsapi.c \
  26.           jsarray.c \
  27.           jsatom.c \
  28.           jsbool.c \
  29.           jscntxt.c \
  30.           jsdate.c \
  31.           jsdbgapi.c \
  32.           jsemit.c \
  33.           jsfun.c \
  34.           jsgc.c \
  35.           jsinterp.c \
  36.           jsmath.c \
  37.           jsnum.c \
  38.           jsobj.c \
  39.           jsopcode.c \
  40.           jsparse.c \
  41.           jsregexp.c \
  42.           jsscan.c \
  43.           jsscope.c \
  44.           jsscript.c \
  45.           jsstr.c \
  46.           jslock.c \
  47.           $(NULL)
  48.  
  49. HEADERS = jsapi.h \
  50.           jsarray.h \
  51.           jsatom.h \
  52.           jsbool.h \
  53.           jscntxt.h \
  54.           jscompat.h \
  55.           jsconfig.h \
  56.           jsdate.h \
  57.           jsdbgapi.h \
  58.           jsemit.h \
  59.           jsfun.h \
  60.           jsgc.h \
  61.           jsinterp.h \
  62.           jslock.h \
  63.           jsmath.h \
  64.           jsnum.h \
  65.           jsobj.h \
  66.           jsopcode.def \
  67.           jsopcode.h \
  68.           jsparse.h \
  69.           jsprvtd.h \
  70.           jspubtd.h \
  71.           jsregexp.h \
  72.           jsscan.h \
  73.           jsscope.h \
  74.           jsscript.h \
  75.           jsstr.h \
  76.           $(NULL)
  77.  
  78. ifeq ($(OS_ARCH), WINNT)
  79. EXTRA_LIBS += $(DIST)/lib/libnspr$(MOD_VERSION).lib
  80. EXTRA_LIBS += $(DIST)/lib/libplds$(MOD_VERSION).lib
  81. else
  82. EXTRA_LIBS += -L$(DIST)/lib -lnspr$(MOD_VERSION) -lnplds$(MOD_VERSION)
  83. endif
  84.  
  85. LIBRARY_NAME    = js
  86. LIBRARY_VERSION    = $(MOD_VERSION)
  87.  
  88. RELEASE_HEADERS = $(HEADERS)
  89. RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
  90. RELEASE_LIBS    = $(TARGETS)
  91.  
  92. include $(MOD_DEPTH)/config/rules.mk
  93.  
  94. export:: $(TARGETS)
  95.     $(INSTALL) -m 444 $(HEADERS) $(MOD_DEPTH)/../dist/public/$(LIBRARY_NAME)
  96.     $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib
  97.     $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin
  98.  
  99. install:: export
  100.  
  101.