home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libreg / src / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  2.0 KB  |  78 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        = libreg
  21. LIBRARY_NAME    = reg
  22.  
  23. REQUIRES    = libreg nspr dbm pref js
  24.  
  25. CSRCS        = reg.c VerReg.c
  26.  
  27. BIN_SRCS    = VerReg.c reg.c vr_stubs.c
  28. BIN_OBJS    = $(addprefix $(OBJDIR)/R_,$(BIN_SRCS:.c=.o))
  29.  
  30. include $(DEPTH)/config/rules.mk
  31.  
  32. # Override gtscc when building vreg on IRIX 5.3.
  33. ifeq ($(OS_ARCH)$(OS_RELEASE),IRIX5)
  34. CC        = cc
  35. endif
  36.  
  37. INCLUDES    += -I$(DEPTH)/include
  38. GARBAGE        += $(PROGRAM)
  39.  
  40. PROGRAM        = $(OBJDIR)/vreg$(BIN_SUFFIX)
  41.  
  42. $(PROGRAM): $(BIN_OBJS)
  43.     @$(MAKE_OBJDIR)
  44. ifeq ($(OS_ARCH), OS2)
  45.     $(LINK_EXE) -OUT:$@ $(BIN_OBJS) $(LDFLAGS) $(OS_LIBS) $(DIST)/lib/libxp.$(LIB_SUFFIX) 
  46. else
  47.     $(CCF) -o $@ $(BIN_OBJS) $(LDFLAGS) $(DIST)/lib/lib$(LITE_PREFIX)xp.$(LIB_SUFFIX)
  48. endif    
  49.  
  50. $(OBJDIR)/R_VerReg.o:    VerReg.c
  51.     @$(MAKE_OBJDIR)
  52. ifeq ($(OS_ARCH), OS2)
  53.     $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  54. else
  55.     $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  56. endif
  57.  
  58. $(OBJDIR)/R_reg.o:    reg.c
  59.     @$(MAKE_OBJDIR)
  60. ifeq ($(OS_ARCH), OS2)
  61.     $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  62. else
  63.     $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  64. endif
  65.  
  66. $(OBJDIR)/R_vr_stubs.o:    vr_stubs.c
  67.     @$(MAKE_OBJDIR)
  68. ifeq ($(OS_ARCH), OS2)
  69.     $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  70. else
  71.     $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $<
  72. endif
  73.  
  74. $(BIN_OBJS): $(BIN_SRCS)
  75.  
  76. install:: $(PROGRAM)
  77.     $(INSTALL) -m 444 $(PROGRAM) $(DIST)/bin
  78.