home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xaw / Imakefile < prev    next >
Encoding:
Makefile  |  1993-07-21  |  3.2 KB  |  208 lines

  1. XCOMM $XConsortium: Imakefile,v 1.78 91/09/18 14:28:23 rws Exp $
  2. #define DoNormalLib NormalLibXaw
  3. #define DoSharedLib SharedLibXaw
  4. #define DoDebugLib DebugLibXaw
  5. #define DoProfileLib ProfileLibXaw
  6. #include <Library.tmpl>
  7.  
  8. #ifdef RsArchitecture
  9. REQUIREDLIBS = $(XMUSRC)/libXmu.a $(EXTENSIONSRC)/lib/libXext.a $(TOOLKITSRC)/libXt.a $(XLIBSRC)/libX11.a
  10. #endif
  11.  
  12.    INSTALLFLAGS = $(INSTINCFLAGS)
  13.        LINTLIBS = $(LINTXLIB) $(LINTXTOOL)
  14.  
  15. HEADERS = \
  16.     AllWidgets.h \
  17.     AsciiSink.h \
  18.     AsciiSinkP.h \
  19.     AsciiSrc.h \
  20.     AsciiSrcP.h \
  21.     AsciiText.h \
  22.     AsciiTextP.h \
  23.     Box.h \
  24.     BoxP.h \
  25.     Cardinals.h \
  26.     Clock.h \
  27.     ClockP.h \
  28.     Command.h \
  29.     CommandP.h \
  30.     Dialog.h \
  31.     DialogP.h \
  32.     Form.h \
  33.     FormP.h \
  34.     Grip.h \
  35.     GripP.h \
  36.     Label.h \
  37.     LabelP.h \
  38.     List.h \
  39.     ListP.h \
  40.     Logo.h \
  41.     LogoP.h \
  42.     Mailbox.h \
  43.     MailboxP.h \
  44.     MenuButton.h \
  45.     MenuButtoP.h \
  46.     Paned.h \
  47.     PanedP.h \
  48.     Panner.h \
  49.     PannerP.h \
  50.     Porthole.h \
  51.     PortholeP.h \
  52.     Repeater.h \
  53.     RepeaterP.h \
  54.     Reports.h \
  55.     Scrollbar.h \
  56.     ScrollbarP.h \
  57.     Simple.h \
  58.     SimpleP.h \
  59.     SimpleMenu.h \
  60.     SimpleMenP.h \
  61.     Sme.h \
  62.     SmeP.h \
  63.     SmeBSB.h \
  64.     SmeBSBP.h \
  65.     SmeLine.h \
  66.     SmeLineP.h \
  67.     StripChart.h \
  68.     StripCharP.h \
  69.     Template.c \
  70.     Template.h \
  71.     TemplateP.h \
  72.     Text.h \
  73.     TextP.h \
  74.     TextSink.h \
  75.     TextSinkP.h \
  76.     TextSrc.h \
  77.     TextSrcP.h \
  78.     Toggle.h \
  79.     ToggleP.h \
  80.     Tree.h \
  81.     TreeP.h \
  82.     Viewport.h \
  83.     ViewportP.h \
  84.     XawInit.h 
  85.  
  86. SRCS = \
  87.     AllWidgets.c \
  88.     AsciiSink.c \
  89.     AsciiSrc.c \
  90.     AsciiText.c \
  91.     Box.c \
  92.     Clock.c \
  93.     Command.c \
  94.     Dialog.c \
  95.     Form.c \
  96.     Grip.c \
  97.     Label.c \
  98.     List.c \
  99.     Logo.c \
  100.     Mailbox.c \
  101.     MenuButton.c \
  102.     Paned.c \
  103.     Panner.c \
  104.     Porthole.c \
  105.     Repeater.c \
  106.     Scrollbar.c \
  107.     Simple.c \
  108.     SimpleMenu.c \
  109.     Sme.c \
  110.     SmeBSB.c \
  111.     SmeLine.c \
  112.     StripChart.c \
  113.     Text.c \
  114.     TextSink.c \
  115.     TextSrc.c \
  116.         TextAction.c \
  117.         TextPop.c \
  118.     TextTr.c \
  119.     Toggle.c \
  120.     Tree.c \
  121.     Vendor.c \
  122.     Viewport.c \
  123.     XawInit.c \
  124.     sharedlib.c
  125.  
  126. #if SharedDataSeparation
  127. UNSHAREDOBJS = AllWidgets.o sharedlib.o
  128. #endif
  129.  
  130. OBJS = \
  131.     AllWidgets.o \
  132.     AsciiSink.o \
  133.     AsciiSrc.o \
  134.     AsciiText.o \
  135.     Box.o \
  136.     Clock.o \
  137.     Command.o \
  138.     Dialog.o \
  139.     Form.o \
  140.     Grip.o \
  141.     Label.o \
  142.     List.o \
  143.     Logo.o \
  144.     Mailbox.o \
  145.     MenuButton.o \
  146.     Paned.o \
  147.     Panner.o \
  148.     Porthole.o \
  149.     Repeater.o \
  150.     Scrollbar.o \
  151.     Simple.o \
  152.     SimpleMenu.o \
  153.     Sme.o \
  154.     SmeBSB.o \
  155.     SmeLine.o \
  156.     StripChart.o \
  157.     Text.o \
  158.     TextSink.o \
  159.     TextSrc.o \
  160.         TextAction.o \
  161.     TextPop.o \
  162.     TextTr.o \
  163.     Toggle.o \
  164.     Tree.o \
  165.     Vendor.o \
  166.     Viewport.o \
  167.     XawInit.o 
  168.  
  169. LibraryObjectRule()
  170.  
  171. #if DoSharedLib && SharedDataSeparation
  172. SpecialObjectRule(sharedlib.o,,$(SHLIBDEF))
  173. #endif
  174.  
  175. #if DoSharedLib
  176. #if DoNormalLib
  177. SharedLibraryTarget(Xaw,$(SOXAWREV),$(OBJS),shared,..)
  178. #else
  179. SharedLibraryTarget(Xaw,$(SOXAWREV),$(OBJS),.,.)
  180. #endif
  181. SharedLibraryDataTarget(Xaw,$(SOXAWREV),$(UNSHAREDOBJS))
  182. InstallSharedLibrary(Xaw,$(SOXAWREV),$(USRLIBDIR))
  183. InstallSharedLibraryData(Xaw,$(SOXAWREV),$(USRLIBDIR))
  184. #endif
  185. #if DoNormalLib
  186. NormalLibraryTarget(Xaw,$(OBJS))
  187. InstallLibrary(Xaw,$(USRLIBDIR))
  188. #endif
  189. #if DoProfileLib
  190. ProfiledLibraryTarget(Xaw,$(OBJS))
  191. InstallLibrary(Xaw_p,$(USRLIBDIR))
  192. #endif
  193. #if DoDebugLib
  194. DebuggedLibraryTarget(Xaw,$(OBJS))
  195. InstallLibrary(Xaw_d,$(USRLIBDIR))
  196. #endif
  197.  
  198. LintLibraryTarget(Xaw,$(SRCS))
  199. InstallLintLibrary(Xaw,$(LINTLIBDIR))
  200.  
  201. BuildIncludes($(HEADERS),Xaw,..)
  202.  
  203. InstallMultiple($(HEADERS),$(INCDIR)/Xaw)
  204.  
  205. DependTarget()
  206.  
  207. NormalLintTarget($(SRCS))
  208.