home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / macnpsdk.sit / PluginSDK / Examples / Simple / Source / Makefile next >
Encoding:
Makefile  |  1996-07-11  |  1.0 KB  |  58 lines

  1. #! gmake
  2.  
  3. DEPTH = ../../../..
  4.  
  5. LIBTARGETS = $(OBJDIR)/npsimple.so
  6. TARGETS = targets
  7.  
  8. CSRCS = npsimple.c stubs.c
  9. OBJS  = $(CSRCS:.c=.o)
  10.  
  11. # Rules to build generated headers
  12.  
  13. JRI_HEADER_CLASSES =           \
  14.     Simple               \
  15.     netscape.plugin.Plugin \
  16.  
  17. JRI_STUB_CLASSES =           \
  18.     Simple               \
  19.     netscape.plugin.Plugin \
  20.  
  21. include $(DEPTH)/config/rules.mk
  22.  
  23. CFLAGS += $(DSO_CFLAGS)
  24.  
  25. CLASSSRC := .:$(DEPTH)/sun-java/classsrc
  26.  
  27. INCLUDES += -I_gen
  28.  
  29. targets:
  30.     @$(MAKE) classes
  31.     @$(MAKE) jri_headers jri_stubs
  32.     @$(MAKE) libtargets
  33.  
  34. JAVAC =    $(JAVAI) -classpath /usr/local/netscape/java/lib/javac.zip \
  35.          -ms8m sun.tools.javac.Main
  36.  
  37. classes: Simple.java
  38.     $(JAVAC) -classpath $(CLASSSRC) Simple.java
  39.  
  40. libtargets: $(LIBTARGETS)
  41.  
  42. $(OBJDIR)/npsimple.so: $(OBJS)
  43.     $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS)
  44.  
  45. install:: $(TARGETS)
  46.     $(INSTALL) $(TARGETS) $(DIST)/bin
  47.  
  48. INCLUDES += -I$(DEPTH)/lib/plugin
  49. GARBAGE += so_locations
  50.  
  51. clobber::
  52.     rm -rf _gen _stubs so_locations
  53.  
  54. export:: targets
  55.     $(INSTALL) $(LIBTARGETS) $(DIST)/lib
  56.  
  57. install:: export
  58.