home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libstyle / Makefile < prev    next >
Encoding:
Makefile  |  1998-04-08  |  1.7 KB  |  61 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. MODULE        = style
  21. LIBRARY_NAME    = style
  22.  
  23. CSRCS        = csslex.c \
  24.           csstab.c \
  25.           csstojs.c \
  26.           jssrules.c \
  27.           libstyle.c \
  28.           stystack.c \
  29.           stystruc.c \
  30.           $(NULL)
  31.  
  32. EXPORTS        = stystack.h stystruc.h css.h
  33.  
  34. REQUIRES    = js nspr dbm img util layer
  35.  
  36. include $(DEPTH)/config/rules.mk
  37.  
  38. TEST_LIBS    = $(LIBRARY) \
  39.           $(DIST)/lib/liburl.$(LIB_SUFFIX) \
  40.           $(DIST)/lib/libsec-us.$(LIB_SUFFIX) \
  41.           $(DIST)/lib/libdbm.$(LIB_SUFFIX) \
  42.           $(DIST)/lib/libxp.$(LIB_SUFFIX) \
  43.           $(DIST)/lib/nspr.$(LIB_SUFFIX)
  44.  
  45. CSS_TEST_LIBS    = $(LIBRARY) \
  46.           $(DIST)/lib/libxp.$(LIB_SUFFIX)
  47.  
  48. ifeq ($(OS_ARCH),OS2)
  49. $(OBJDIR)/csstab.o: csstab.c
  50.     @$(MAKE_OBJDIR)
  51.     $(CC) -Fo$@ -Sa -c $(CFLAGS) $<
  52. endif
  53.  
  54. test:
  55.     $(CC) -g -o $(OBJDIR)/style_test $(CFLAGS) -DSS_TEST stystruc.c $(TEST_LIBS)
  56.     $(CC) -g -o $(OBJDIR)/stack_test $(CFLAGS) -DTEST_STYLESTACK stystack.c $(TEST_LIBS)
  57.  
  58. css_test:
  59.     rm -f $(OBJDIR)/css_test
  60.     $(CC) -g -o $(OBJDIR)/css_test $(CFLAGS) -DTEST_CSS_TRANSLATION csstojs.c $(CSS_TEST_LIBS)
  61.