157 warnings: remove -DXK_MISCELLANY from Makefiles
[oweals/cde.git] / cde / lib / DtHelp / Imakefile
1 XCOMM $XConsortium: Imakefile /main/25 1996/11/22 11:17:34 drk $
2 #define DoNormalLib     NormalLibDtHelp
3 #define DoSharedLib     SharedLibDtHelp
4 #define DoDebugLib      DebugLibDtHelp
5 #define DoProfileLib    ProfileLibDtHelp
6 #define LibName         DtHelp
7 #define SoRev           SODTHELPREV
8 #define IncSubdir       Dt
9 #define LargePICTable   YES
10
11 #include <Threads.tmpl>
12
13 #define IHaveSubdirs
14 #define PassCDebugFlags /**/
15
16 #if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
17 SUBDIRS = il
18 DONES = il/DONE
19 #else
20 SUBDIRS = il jpeg
21 DONES = il/DONE jpeg/DONE
22 #endif
23
24 EXTRALIBRARYDEPS = $(DONES)
25
26 MakeSubdirs($(SUBDIRS))
27 ForceSubdirs($(SUBDIRS))
28 DependSubdirs($(SUBDIRS))
29
30 XLATESRC = $(DTSVCSRC)/DtUtil2
31
32 #if defined(LSBBitOrder) && LSBBitOrder
33 BIT_ORDER_DEFINES = -DLSB_BIT_ORDER
34 #endif
35
36 INCLUDES = -I. -I./il -I./jpeg
37 #if defined(OpenBSDArchitecture)
38 INCLUDES += -I$(INCROOT)
39 #endif
40 DEFINES = -DDTLIB $(LOCAL_DEFINES) \
41           -DCDE_INSTALLATION_TOP='"$(CDE_INSTALLATION_TOP)"' \
42           -DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"' \
43           -DCDE_USER_TOP='"$(CDE_USER_TOP)"' \
44           -DOSMAJORVERSION=OSMajorVersion \
45           -DOSMINORVERSION=OSMinorVersion \
46           $(ICONV_INBUF_DEFINE) $(BIT_ORDER_DEFINES)
47
48 #ifdef SharedDtHelpReqs
49 REQUIREDLIBS = SharedDtHelpReqs
50 #endif
51
52 HEADERS = \
53         CanvasP.h       CanvasSegP.h    Help.h \
54         HelpDialog.h    HelpDialogP.h   HelpP.h \
55         HelpQuickD.h    HelpQuickDP.h
56
57 /* These internal headers will go to the DtI directory */
58 I_HEADERS = \
59         Access.h        AccessI.h       AccessP.h \
60         ActionsI.h      CallbacksI.h    CanvasI.h \
61         DisplayAreaI.h  DisplayAreaP.h  FileUtilsI.h \
62         FontAttrI.h     FontI.h         GifUtilsI.h \
63         GraphicsP.h     HelpP.h         HelpTermP.h \
64         HelposI.h       HourGlassI.h    JpegUtilsI.h \
65         LinkMgrP.h      RegionI.h       SetListI.h \
66         XUICreateI.h    XbmUtilsI.h     bufioI.h
67
68 LCX_HEADERS = \
69         LocaleXlate.h   XlationSvc.h
70
71 SRCS1 = \
72         Actions.c       AsciiSpc.c      Callbacks.c \
73         Destroy.c       Environ_c.c     FileListUtils.c \
74         FileUtils.c     Font.c          Format.c \
75         FormatMan.c     FormatTerm.c    GifUtils.c \
76         GlobSearch.c    Graphics.c      HelpAccess.c \
77         HelpDialog.c    HelpQuickD.c    HelpUtil.c \
78         Helpos.c        History.c       HourGlass.c \
79         HyperText.c     JpegUtils.c     Messages.c \
80         PathArea.c      Print.c         Resize.c \
81         SetList.c       VolSelect.c     XInterface.c \
82         XUICreate.c     XbmUtils.c      version.c
83
84 OBJS1 = \
85         Actions.o       AsciiSpc.o      Callbacks.o \
86         Destroy.o       Environ_c.o     FileListUtils.o \
87         FileUtils.o     Font.o          Format.o \
88         FormatMan.o     FormatTerm.o    GifUtils.o \
89         GlobSearch.o    Graphics.o      HelpAccess.o \
90         HelpDialog.o    HelpQuickD.o    HelpUtil.o \
91         Helpos.o        History.o       HourGlass.o \
92         HyperText.o     JpegUtils.o     Messages.o \
93         PathArea.o      Print.o         Resize.o \
94         SetList.o       VolSelect.o     XInterface.o \
95         XUICreate.o     XbmUtils.o      version.o
96
97 SRCS2 = \
98         Access.c        AccessCCDF.c    AccessSDL.c \
99         CCDFUtil.c      CleanUp.c       FontAttr.c \
100         FormatCCDF.c    FormatSDL.c     FormatUtil.c \
101         GenUtils.c      Obsolete.c      StringFuncs.c \
102         UtilSDL.c       bufio.c         decompress.c
103
104 OBJS2 = \
105         Access.o        AccessCCDF.o    AccessSDL.o \
106         CCDFUtil.o      CleanUp.o       FontAttr.o \
107         FormatCCDF.o    FormatSDL.o     FormatUtil.o \
108         GenUtils.o      Obsolete.o      StringFuncs.o \
109         UtilSDL.o       bufio.o         decompress.o
110
111 CVSRCS = \
112         Canvas.c        CanvasOs.c      CvString.c \
113         Layout.c        LayoutUtil.c    LinkMgr.c \
114         Selection.c     VirtFuncs.c
115
116 CVOBJS = \
117         Canvas.o        CanvasOs.o      CvString.o \
118         Layout.o        LayoutUtil.o    LinkMgr.o \
119         Selection.o     VirtFuncs.o
120
121 LCXSRCS = \
122         HelpXlate.c
123   
124 LCXOBJS = \
125         HelpXlate.o
126   
127 /* NOTE!!!
128  * All IO_OBJS and JPEG_OBJS .o's are built in the subdirectories.  
129  * Each .o there must have a listing in *OBJS macros below.
130  */
131
132 IL_OBJS = \
133         il/ilX.o            il/ilbigray.o       il/ilcodec.o \
134         il/ilcontext.o      il/ilconvert.o      il/ilcrop.o \
135         il/ildata.o         il/ildecompg3.o     il/ildecompg4.o \
136         il/ildecompjpeg.o   il/ildecomplzw.o    il/ildecomppackbits.o \
137         il/ildecompress.o   il/ildither.o       il/ilformat.o \
138         il/ilgraybi.o       il/ilimage.o        il/ilinvert.o \
139         il/iljpgdecode.o    il/iljpgdecodejif.o il/iljpgdedct.o \
140         il/iljpgdehuff.o    il/iljpgutil.o      il/ilmap.o \
141         il/ilobject.o       il/ilpalette.o      il/ilpipe.o \
142         il/ilrwimage.o      il/ilscale.o        il/ilscalesample.o \
143         il/iltiff.o         il/iltiffread.o     il/iltruegray.o \
144         il/ilupsample.o     il/ilutiljpeg.o     il/ilycbcr.o
145
146 JPEG_OBJS = \
147         jpeg/jcomapi.o      jpeg/jdmainct.o     jpeg/jidctflt.o \
148         jpeg/jdapimin.o     jpeg/jdmarker.o     jpeg/jidctfst.o \
149         jpeg/jdapistd.o     jpeg/jdmaster.o     jpeg/jidctint.o \
150         jpeg/jdatasrc.o     jpeg/jdmerge.o      jpeg/jidctred.o \
151         jpeg/jdcoefct.o     jpeg/jdphuff.o      jpeg/jmemmgr.o \
152         jpeg/jdcolor.o      jpeg/jdpostct.o     jpeg/jmemnobs.o \
153         jpeg/jddctmgr.o     jpeg/jdsample.o     jpeg/jquant1.o \
154         jpeg/jdhuff.o       jpeg/jdtrans.o      jpeg/jquant2.o \
155         jpeg/jdinput.o      jpeg/jerror.o       jpeg/jutils.o
156
157 SRCS = $(SRCS1) $(SRCS2) $(CVSRCS) $(LCXSRCS)
158 #if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
159 OBJS = $(OBJS1) $(OBJS2) $(CVOBJS) $(LCXOBJS) $(IL_OBJS)
160 #else
161 OBJS = $(OBJS1) $(OBJS2) $(CVOBJS) $(LCXOBJS) $(IL_OBJS) $(JPEG_OBJS)
162 #endif
163
164 #include <Library.tmpl>
165
166 #ifdef HPArchitecture
167 # ifdef __hp9000s300
168 /* Build +O1 due to 300 optimizer bug on all architectures */
169 SpecialSharedObjectRule(Search.o,/**/,+O1)
170 # endif
171 # if OSMajorVersion == 10
172 /* Workaround compiler bug in hp 10.0 WC.  Should be removed eventually. */
173 SpecialLibObjectRule(Canvas.o,,+O1)
174 # endif
175 #endif
176
177
178 LCX_FILES = AIX.lcx CDE.lcx HP-UX.lcx SunOS.lcx Linux.lcx
179 LCX_DEST = misc/dtlcx
180 InstallMultiple($(LCX_FILES),$(LCX_DEST))
181
182 BuildIncludes($(I_HEADERS),DtI,..)
183 InstallMultipleFlags($(I_HEADERS),$(INCDIR)/DtI,$(INSTINCFLAGS))
184
185 /* link LocaleXlate XlationSvc headers. */
186 LinkSourceFile(LocaleXlate.h,$(XLATESRC))
187 LinkSourceFile(XlationSvc.h,$(XLATESRC))
188
189 DependTarget()
190
191 clean1: 
192         rm -f $(OBJS1)
193
194 clean2: 
195         rm -f $(OBJS2)
196
197 cleanlcx: 
198         rm -f $(LCXOBJS)
199
200 cleancv: 
201         rm -f $(CVOBJS)