home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / gen_make.efw < prev    next >
Text File  |  1999-02-22  |  2KB  |  66 lines

  1. :template
  2. # @(#) somc/gen_make.efs 2.4 9/1/94 19:32:42 [7/30/96 14:44:57]
  3.  
  4. #
  5. # COMPONENT_NAME: some
  6. #
  7. # ORIGINS: 27
  8. #
  9. #
  10. # 10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  11. # All Rights Reserved
  12. # Licensed Materials - Property of IBM
  13. # US Government Users Restricted Rights - Use, duplication or
  14. # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  15. #
  16.  
  17. # Makefile for: emit<classSourceFileStem>    [<timeStamp>]
  18. # Author: SOMObjects Emitter Framework
  19.  
  20. # We set SOMBASE to /usr/lpp/som by default, if your installation is
  21. # different and som has been installed elsewhere, then change the SOMBASE
  22. # variable.
  23. # SOMBASE     = /usr/lpp/som
  24. # To ensure that all other Makefiles generated by the newemit program have
  25. # this information then alter the template file in 
  26. # $(SOMBASE)/include/gen_make.efw to reflect this difference.
  27. DLLDEST     = $(SOMBASE)/lib
  28. EFWDEST     = $(SOMBASE)/include
  29. INCLUDEPATH = -I$(SOMBASE)/include
  30. LIBDIRPATH  = -L$(SOMBASE)/lib
  31.  
  32. SRCS        = emit<classSourceFileStem>.c <classSourceFileStem>.c <classSourceFileStem>.efw <classSourceFileStem>.idl
  33. OBJS        = emit<classSourceFileStem>.o <classSourceFileStem>.o
  34. TARGET      = emit<classSourceFileStem>.dll
  35. CLEANFILES  = <classSourceFileStem>.h
  36.  
  37. SCFLAGS     = -D__PRIVATE__ -sh:ih -m addstar
  38. CC          = cc
  39. CFLAGS      = 
  40. LINKER      = ld
  41. LDFLAGS     = -bM:SRE -T512 -H512
  42. LIBLIST     = -lsomtk
  43.  
  44.  
  45. .SUFFIXES: .c .ih .idl .o
  46.  
  47. .c.o:
  48.     $(CC) -I. $(INCLUDEPATH) $(CFLAGS) -c $\<
  49.  
  50. .idl.ih:
  51.     sc $(SCFLAGS) $\<
  52.  
  53. $(TARGET): $(OBJS)
  54.     $(LINKER) -o $@ -e emit $(OBJS) $(LDFLAGS)\\
  55.         -lc $(LIBDIRPATH) $(LIBLIST)
  56.  
  57. clean:
  58.     rm -f *.o core *.ih $(TARGET) $(CLEANFILES)
  59.  
  60. emit<classSourceFileStem>.o: emit<classSourceFileStem>.c <classSourceFileStem>.ih
  61.  
  62. <classSourceFileStem>.o: <classSourceFileStem>.c <classSourceFileStem>.ih
  63.  
  64. <classSourceFileStem>.ih: <classSourceFileStem>.idl
  65.  
  66.