Makefile.sun 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # $XConsortium: Makefile.sun /main/3 1996/05/13 12:01:49 drk $
  2. ##########################################################################
  3. #
  4. # Makefile for template example (SUN)
  5. #
  6. # (c) Copyright 1993, 1994 Hewlett-Packard Company
  7. # (c) Copyright 1993, 1994 International Business Machines Corp.
  8. # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  9. # (c) Copyright 1993, 1994 Novell, Inc.
  10. #
  11. ##########################################################################
  12. CC = cc
  13. RM = rm -f
  14. DTHELPTAG = dthelptag
  15. GENCAT = gencat
  16. MKDIR = mkdir -p
  17. CP = cp
  18. CHMODEXE = chmod a+x
  19. LOCALE = C
  20. PACKAGE = template
  21. APPGROUPNAME = template
  22. PROGRAM = templatebin
  23. SOURCES = template.c
  24. OBJECTS = template.o
  25. HELPSOURCE = $(LOCALE)/template.htg
  26. HELPFILE = $(LOCALE)/template.sdl
  27. MSGSOURCE = $(LOCALE)/template.msg
  28. MSGFILE = $(LOCALE)/template.cat
  29. TYPEFILE = $(LOCALE)/template.dt
  30. ICONFILES = \
  31. $(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
  32. $(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
  33. $(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
  34. $(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
  35. $(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
  36. $(LOCALE)/template-brush.bm
  37. APPDEFAULTSSRC = $(LOCALE)/Template.ad
  38. APPDEFAULTS = $(LOCALE)/Template
  39. README = $(LOCALE)/README
  40. EXAMPLES = $(LOCALE)/example.template
  41. ACTIONS = TemplateNew TemplateOpen TemplatePrint
  42. DEFINES =
  43. CDEBUGFLAGS = -O
  44. CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
  45. DTINCLUDE = -I/usr/dt/include
  46. X11INCLUDE = -I/usr/openwin/include
  47. INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
  48. DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
  49. X11LIBS = -L/usr/openwin/lib -lXt -lX11
  50. SYSLIBS = -ldl -lw -lgen
  51. LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
  52. LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
  53. .c.o:
  54. $(CC) -c $(CFLAGS) $(INCLUDES) $<
  55. #all:: $(PACKAGE)
  56. $(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
  57. $(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
  58. $(RM) -r $(PACKAGE)
  59. $(MKDIR) $(PACKAGE)/bin
  60. $(MKDIR) $(PACKAGE)/app-defaults/C
  61. $(MKDIR) $(PACKAGE)/msg/C
  62. $(CP) $(PROGRAM) $(PACKAGE)/bin
  63. $(CP) $(MSGFILE) $(PACKAGE)/msg/C
  64. $(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
  65. $(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
  66. $(MKDIR) $(PACKAGE)/dt/appconfig/help/C
  67. $(MKDIR) $(PACKAGE)/dt/appconfig/types/C
  68. $(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
  69. $(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
  70. $(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
  71. $(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
  72. $(CHMODEXE) $(ACTIONS)
  73. $(CP) $(README) $(EXAMPLES) $(ACTIONS) \
  74. $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
  75. $(PROGRAM):: $(OBJECTS)
  76. $(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
  77. $(APPDEFAULTS):: $(APPDEFAULTSSRC)
  78. $(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
  79. $(HELPFILE):: $(HELPSOURCE)
  80. $(DTHELPTAG) $(HELPSOURCE)
  81. $(MSGFILE):: $(MSGSOURCE)
  82. $(GENCAT) $(MSGFILE) $(MSGSOURCE)
  83. clean::
  84. $(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
  85. $(DTHELPTAG) -clean $(HELPSOURCE)
  86. $(RM) -r template