home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / self / contrib.lha / contrib / SelfNews / Makefile < prev    next >
Encoding:
Makefile  |  1993-07-25  |  1.1 KB  |  43 lines

  1. # Makefile for wireI 
  2. # created by Ian Wilkinson on Sat Sep 12 23:08:54 1992
  3. #
  4. # Makefile...
  5. # Borrows from that in self/applications/serverDemo.
  6. #
  7. # Copyright (c) Canon Research Centre Europe, 1992.
  8. # All rights reserved.
  9.  
  10. OPENWINHOME:sh = echo ${OPENWINHOME:-/usr/openwin}
  11. ROOTDIR  = ${SELF_BASELINE_DIR}
  12. WI_LIBPATH = -L$(OPENWINHOME)/lib
  13. WI_LIBS    = -ljot -lwire -lcps
  14. INCLUDES = -I${ROOTDIR}/sun4/optimized -I${ROOTDIR}/glueDefs \
  15.        -I$(OPENWINHOME)/include
  16. CDEFS    = wireIPS.h
  17. %.h: %.cps
  18.     cps $<
  19.  
  20. app: $(CDEFS) wireI.so
  21.  
  22. # Static constructors in the dynamic library is NOT working
  23. wireI.so: wireI.o
  24.     @echo Linking $@
  25.     @ld -o $@ $? $(WI_LIBPATH) $(WI_LIBS)
  26.  
  27. wireI.o: wireI.C
  28.     @echo Compiling wireI.C
  29.     @${COMPILE.gnu.o} -o $@ $?
  30.  
  31. clean:
  32.     -rm wireI.so wireI.o wireIPS.h
  33.  
  34. # The following includes contain information about the current 
  35. # installed g++ compiler, g++ options, and g++ include directories.
  36. include ${ROOTDIR}/MakefileSun4Template
  37. include ${ROOTDIR}/MakefileOptimizeTemplate
  38. include ${ROOTDIR}/MakefileCompileTemplate
  39. include ${ROOTDIR}/MakefileFTPTemplate
  40. include ${ROOTDIR}/MakefilePublishTemplate
  41.  
  42.  
  43.