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

  1. #!nmake
  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. DEPTH=..\..
  19.  
  20. IGNORE_MANIFEST=1
  21.  
  22. DIRS = dynamic windows
  23.  
  24. MAKE_OBJ_TYPE    = EXE
  25. PROG1 = .\$(OBJDIR)\TestFactory.exe
  26. PROG2 = .\$(OBJDIR)\RegFactory.exe
  27. PROGRAMS = $(PROG1) $(PROG2)
  28.  
  29. LINCS=-I..\src
  30.  
  31. LLIBS=                    \
  32.  $(DIST)\lib\xpcom32.lib        \
  33.  $(LIBNSPR)                \
  34.  $(DIST)\lib\libplc21.lib
  35.  
  36. include <$(DEPTH)\config\rules.mak>
  37.  
  38. install:: $(PROGRAMS)
  39.     -for %p in ($(PROGRAMS)) do $(MAKE_INSTALL) %p $(DIST)\bin
  40.  
  41. clobber::
  42.     -for %p in ($(PROGRAMS)) do $(RM) %p $(DIST)\bin\%p
  43.  
  44. # Move this into config/obj.inc when it's allowed
  45. .cpp{.\$(OBJDIR)\}.exe:
  46.     $(CC) @<<$(CFGFILE)
  47.         $(CFLAGS)
  48.         $(LCFLAGS)
  49.         $(LINCS)
  50.         $(LINCS_1)
  51.         $(INCS)
  52.         $(LLIBS)
  53.         $(OS_LIBS)
  54.         -Fd$(PBDFILE)
  55.         -Fe.\$(OBJDIR)\
  56.         -Fo.\$(OBJDIR)\
  57.         $(CURDIR)$(*B).cpp
  58. <<KEEP
  59.  
  60. $(PROG1): $(OBJDIR) TestFactory.cpp
  61. $(PROG2): $(OBJDIR) RegFactory.cpp
  62.  
  63.