home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / xpcom / tests / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  1.4 KB  |  59 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. DEPTH=../..
  19.  
  20. include $(DEPTH)/config/config.mk
  21.  
  22. CPPSRCS = \
  23.     TestFactory.cpp    \
  24.     $(NULL)
  25.  
  26. INCLUDES=-I../src
  27.  
  28. DIRS = dynamic 
  29.  
  30. OBJS    = $(CPPSRCS:.cpp=.o)
  31.  
  32. EX_LIBS = \
  33.     $(DIST)/lib/libxpcom.a    \
  34.     $(DIST)/lib/libplc21.a    \
  35.     $(DIST)/lib/libplds21.a    \
  36.     $(DIST)/lib/libnspr21.a    \
  37.     $(NULL)
  38.  
  39. PROGS    = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=))
  40.  
  41. NON_DIRS = $(PROGS)
  42. TARGETS = $(NON_DIRS)
  43.  
  44. include $(DEPTH)/config/rules.mk
  45.  
  46. $(OBJDIR)/%.o: %.cpp
  47.     @$(MAKE_OBJDIR)
  48.     $(CCC) -o $@ $(CFLAGS) -c $*.cpp
  49.  
  50. $(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS)
  51.     @$(MAKE_OBJDIR)
  52.     $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS)
  53.  
  54. export::
  55.  
  56. instal:: $(TARGETS)
  57.     $(INSTALL) NON_DIRS $(DIST)/bin
  58.  
  59.