home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / js / src / makefile.win < prev    next >
Encoding:
Makefile  |  1998-04-08  |  4.0 KB  |  147 lines

  1. #// The contents of this file are subject to the Netscape Public License
  2. #// Version 1.0 (the "NPL"); you may not use this file except in
  3. #// compliance with the NPL.  You may obtain a copy of the NPL at
  4. #// http://www.mozilla.org/NPL/
  5. #//
  6. #// Software distributed under the NPL is distributed on an "AS IS" basis,
  7. #// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. #// for the specific language governing rights and limitations under the
  9. #// NPL.
  10. #//
  11. #// The Initial Developer of this code under the NPL is Netscape
  12. #// Communications Corporation.  Portions created by Netscape are
  13. #// Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  14. #// Reserved.
  15.  
  16. #//------------------------------------------------------------------------
  17. #//
  18. #// Specify the depth of the current directory relative to the
  19. #// root of NS
  20. #//
  21. #//------------------------------------------------------------------------
  22. DEPTH=..\..
  23.  
  24. #//------------------------------------------------------------------------
  25. #//
  26. #// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
  27. #//
  28. #//------------------------------------------------------------------------
  29.  
  30. DLLNAME        = js$(MOZ_BITS)$(VERSION_NUMBER)
  31. DLL1NAME    = js1$(MOZ_BITS)$(VERSION_NUMBER)
  32. PDBFILE        = $(DLLNAME).pdb
  33. MAPFILE        = $(DLLNAME).map
  34. RESFILE        = $(DLLNAME).res
  35. DLL        =.\$(OBJDIR)\$(DLLNAME).dll
  36. MAKE_OBJ_TYPE    = DLL
  37.  
  38. !if "$(MOZ_BITS)" != "16"
  39. LINCS = -I$(PUBLIC)\layout \
  40.         -I$(DEPTH)\include \
  41.         -I$(PUBLIC)\liblayer 
  42. !endif
  43.  
  44. !if "$(MOZ_BITS)" == "16"
  45. !ifdef NSPR20
  46. DEFFILE        = $(DLL1NAME).def
  47. !else
  48. DEFFILE        = $(DLLNAME).def
  49. !endif
  50. !endif
  51.  
  52. LLIBS=$(LIBNSPR)
  53.  
  54. #//------------------------------------------------------------------------
  55. #// 
  56. #// Define the files necessary to build the target (ie. OBJS)
  57. #//
  58. #//------------------------------------------------------------------------
  59. OBJS =                    \
  60.     .\$(OBJDIR)\jsapi.obj        \
  61.     .\$(OBJDIR)\prmjtime.obj    \
  62.     .\$(OBJDIR)\jsarray.obj        \
  63.     .\$(OBJDIR)\jsatom.obj        \
  64.     .\$(OBJDIR)\jsbool.obj        \
  65.     .\$(OBJDIR)\jscntxt.obj        \
  66.     .\$(OBJDIR)\jsdate.obj        \
  67.     .\$(OBJDIR)\jsdbgapi.obj    \
  68.     .\$(OBJDIR)\jsemit.obj        \
  69.     .\$(OBJDIR)\jsfun.obj        \
  70.     .\$(OBJDIR)\jsgc.obj        \
  71.     .\$(OBJDIR)\jsinterp.obj    \
  72.     .\$(OBJDIR)\jsmath.obj        \
  73.     .\$(OBJDIR)\jsnum.obj        \
  74.     .\$(OBJDIR)\jsobj.obj        \
  75.     .\$(OBJDIR)\jsopcode.obj    \
  76.     .\$(OBJDIR)\jsparse.obj        \
  77.     .\$(OBJDIR)\jsregexp.obj    \
  78.     .\$(OBJDIR)\jsscan.obj        \
  79.     .\$(OBJDIR)\jsscope.obj        \
  80.     .\$(OBJDIR)\jsscript.obj    \
  81.     .\$(OBJDIR)\jsstr.obj        \
  82.     .\$(OBJDIR)\jslock.obj        \
  83.     $(NULL)
  84.  
  85. #//------------------------------------------------------------------------
  86. #//
  87. #// install headers
  88. #//
  89. #//------------------------------------------------------------------------
  90. INSTALL_DIR=$(PUBLIC)\js
  91. INSTALL_FILE_LIST=    \
  92.     jsapi.h        \
  93.     jsarray.h    \
  94.     jsatom.h    \
  95.     jsbool.h    \
  96.     jscntxt.h    \
  97.     jscompat.h    \
  98.     jsconfig.h    \
  99.     jsdate.h    \
  100.     jsdbgapi.h    \
  101.     jsemit.h    \
  102.     jsfun.h        \
  103.     jsgc.h        \
  104.     jsinterp.h    \
  105.     jslock.h    \
  106.     jsmath.h    \
  107.     jsnum.h        \
  108.     jsobj.h        \
  109.     jsopcode.def    \
  110.     jsopcode.h    \
  111.     jsparse.h    \
  112.     jsprvtd.h    \
  113.     jspubtd.h    \
  114.     jsregexp.h    \
  115.     jsscan.h    \
  116.     jsscope.h    \
  117.     jsscript.h    \
  118.     jsstr.h        \
  119.     $(NULL)
  120.  
  121. #//------------------------------------------------------------------------
  122. #//
  123. #// Include the common makefile rules
  124. #//
  125. #//------------------------------------------------------------------------
  126. include <$(DEPTH)\config\rules.mak>
  127.  
  128. export:: $(DLL)    INSTALL_FILES
  129.     $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin
  130.     $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
  131.  
  132. #//------------------------------------------------------------------------
  133. #//
  134. #// Standalone js.exe interpreter
  135. #//
  136. #//------------------------------------------------------------------------
  137.  
  138. #//PROGRAM = $(OBJDIR)\js.exe
  139. #//js:    $(PROGRAM)
  140. #//
  141. #//$(PROGRAM): $(OBJDIR)\js.obj $(LIBRARY)
  142. #//        @$(MAKE_OBJDIR)
  143. #//        $(link) /debug /out:$(PROGRAM) $(OBJDIR)\js.obj $(DIST)\lib\pr3240.lib $(LIBRARY) $(LDFLAGS)
  144. #//
  145. #//$(OBJDIR)\js.obj: js.c
  146. #//        $(CC) /Fo$(OBJDIR)\js.obj js.c $(CFLAGS) -DJSFILE
  147.