Imakefile diffs for OpenBSD.
[oweals/cde.git] / cde / programs / dtcm / dtcm / Imakefile
1 XCOMM $TOG: Imakefile /main/19 1998/04/09 11:46:13 mgreess $
2
3 #include <Threads.tmpl>
4
5        INCLUDES = -I. -I$(CSASRC) -I../libDtCmP -I$(DTHELPSRC)
6   SYS_LIBRARIES = -lm $(ICONVSYSLIB)
7        DTCMPLIB = ../libDtCmP/libDtCmP.a
8
9         DEPLIBS = $(DEPCSALIB) DepDtClientLibs
10 LOCAL_LIBRARIES = ../libDtCmP/libDtCmP.a $(CSALIB) DtClientLibs
11   SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs
12
13  OSMAJORVERSION = OSMajorVersion
14  OSMINORVERSION = OSMinorVersion
15         DEFINES = -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
16         -DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)" \
17         $(ICONV_INBUF_DEFINE)
18
19 #if defined(RsArchitecture) || defined(USLArchitecture) || defined(UXPArchitecture) || defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
20 TTY_LIBRARIES = $(LOCAL_LIBRARIES) 
21 #elif defined(AlphaArchitecture)
22 TTY_LIBRARIES = $(DTCMPLIB) $(CSALIB) $(DTSVCLIB) $(XTOOLLIB) $(XLIB)
23 #else
24 TTY_LIBRARIES = $(DTCMPLIB) $(CSALIB) $(DTSVCLIB)
25 #endif
26
27 #ifdef RsArchitecture
28 EXTRA_LIBRARIES = -lrpcsvc -lPW -ldiag
29 #endif
30
31 #ifdef HPArchitecture
32 EXTRA_LIBRARIES = -lrpcsvc -lV3
33 #endif
34
35 #if defined(OpenBSDArchitecture)
36 EXTRA_LIBRARIES = -lcompat
37 #endif
38
39 #ifdef SunArchitecture
40 XCOMM Uncomment to build using Federated Naming Services.  To activate
41 XCOMM you must set the UseFNS resource to True before runnin dtcm.
42 XCOMM #define UseFNS
43
44 #ifdef UseFNS
45 EXTRA_DEFINES = -DFNS -DPOSIX_THREADS -DSunOS=$(OSMAJORVERSION)$(OSMINORVERSION)
46 #else
47 EXTRA_DEFINES = -DSunOS=$(OSMAJORVERSION)$(OSMINORVERSION)
48 #endif
49
50 EXTRA_CCOPTIONS = -xstrconst -Xc -v
51 EXTRA_LIBRARIES = $(FNS_EXTRA_LIBS)
52 #endif
53
54 PROG1 = dtcm
55 SRCS1 = MonthPanel.c    RFCMIME.c       about.c \
56         alarm.c         blist.c         browser.c \
57         calendarA.c     cm_i18n.c       cmtt.c \
58         datefield.c     dayglance.c     deskset.c \
59         dnd.c           dssw.c          editor.c \
60         find.c          fns.c           font.c \
61         format.c        goto.c          graphics.c \
62         group_editor.c  help.c          i18nxlate.c \
63         icon.c          md5.c           misc.c \
64         monthglance.c   namesvc.c       print.c \
65         props.c         props_pu.c      reminders.c \
66         rfp.c           select.c        session.c \
67         submit.c        tempbr.c        timezone.c \
68         todo.c          weekglance.c    x_graphics.c \
69         yearglance.c
70 OBJS1 = \
71         MonthPanel.o    RFCMIME.o       about.o \
72         alarm.o         blist.o         browser.o \
73         calendarA.o     cm_i18n.o       cmtt.o  \
74         datefield.o     dayglance.o     deskset.o \
75         dnd.o           dssw.o          editor.o \
76         find.o          fns.o           font.o  \
77         format.o        goto.o          graphics.o \
78         group_editor.o  help.o          i18nxlate.o \
79         icon.o          md5.o           misc.o  \
80         monthglance.o   namesvc.o       print.o \
81         props.o         props_pu.o      reminders.o \
82         rfp.o           select.o        session.o \
83         submit.o        tempbr.o        timezone.o \
84         todo.o          weekglance.o    x_graphics.o \
85         yearglance.o
86
87 PROG2 = dtcm_delete
88 SRCS2 = cm_delete.c
89 OBJS2 = cm_delete.o
90
91 PROG3 = dtcm_insert
92 SRCS3 = cm_insert.c
93 OBJS3 = cm_insert.o
94
95 PROG4 = dtcm_lookup
96 SRCS4 = cm_lookup.c
97 OBJS4 = cm_lookup.o
98
99 PROG5 = dtcm_editor
100 SRCS5 = datefield.c     deskset.c       dssw.c \
101         dtcm_editor.c   help.c          misc.c \
102         reminders.c     rfp.c
103 OBJS5 = datefield.o     deskset.o       dssw.o \
104         dtcm_editor.o   help.o          misc.o \
105         reminders.o     rfp.o
106
107 PROGRAMS = $(PROG1) $(PROG2) $(PROG3) $(PROG4) $(PROG5)
108
109 ICONS = \
110         busy.icon               cmgr.icon \
111         cmgrmask.icon           compose.icon \
112         compose.mask.icon       contract_xbm \
113         drag_mask_xbm           drag_xbm \
114         expand_xbm              icon_pixmap_xbm \
115         postup_xbm              xm_error_xbm \
116         xm_information_xbm      xm_question_xbm \
117         xm_warning_xbm
118
119 ComplexProgramTarget_1($(PROG1),$(LOCAL_LIBRARIES),)
120 ComplexProgramTarget_2($(PROG2),$(TTY_LIBRARIES),)
121 ComplexProgramTarget_3($(PROG3),$(TTY_LIBRARIES),)
122 ComplexProgramTarget_4($(PROG4),$(TTY_LIBRARIES),)
123 ComplexProgramTarget_5($(PROG5),$(LOCAL_LIBRARIES),)