Add -fpermissive to allow compilation of old C++ on modern GCC
[oweals/cde.git] / cde / programs / dtterm / Imakefile
1 XCOMM $XConsortium: Imakefile /main/17 1996/07/23 17:10:41 drk $
2 #define IHaveSubdirs
3 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
4
5 #ifdef SunArchitecture
6 .NO_PARALLEL:
7 #endif
8
9 SUBDIRS = util
10
11 MakeSubdirs($(SUBDIRS))
12 DependSubdirs($(SUBDIRS))
13
14 DEFINES = $(ARCHITECTURE_DEFINES) -DSUN_TERMINAL_SERVER
15
16 #ifdef  Build_HpVue
17 EXTRA_DEFINES = -DBUILD_HPVUE -DHPVUE
18 #endif  /* Build_HpVue */
19
20 #ifdef SunArchitecture
21 HELPLIB = $(DTSVCLIB) $(TTLIB)
22 DEPHELPLIB = $(DEPDTSVCLIB) $(DEPTTLIB)
23 #else
24 HELPLIB = $(DTHELPLIB) $(DTSVCLIB) $(TTLIB)
25 DEPHELPLIB = $(DEPDTHELPLIB) $(DEPDTSVCLIB) $(DEPTTLIB)
26 #endif /* SunArchitecture */
27
28 #ifdef  HPArchitecture
29 USE_XHPLIB = $(XHPLIB)
30 #endif  /* HPArchitecture */
31
32 XCOMM On Linux once you link against a C++ library the whole program
33 XCOMM has to be linked with the C++ linker
34 #if defined(LinuxDistribution)
35 CCLINK = $(CXX)
36 #endif
37
38 /* DEPLIBS contains the list of library depencies for a client.
39  * LOCAL_LIBRARIES contains the list of libraries on the link line.
40  * Generally, the dependency form of a library has DEP as a prefix.
41  * e.g. put $(XLIB) in LOCAL_LIBRARIES and $(DEPXLIB) in DEPLIBS.
42  * NOTE: if DEPLIBS is not set here, it is by default null and there
43  *       are no library dependencies for clients.
44  *       You cannot put -Llibpath into DEPLIBS. You must put actual
45  *       paths to the library.
46  */
47 DEPLIBS = $(DEPDTTERMLIB) $(DEPARCHLIBS) $(DEPXINPUTLIB) $(DEPHELPLIB) \
48         $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB) 
49 LOCAL_LIBRARIES = $(DTTERMLIB) $(USE_XHPLIB) $(XINPUTLIB) $(HELPLIB) \
50         $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
51 SYS_LIBRARIES = DtClientSysLibs
52
53 INCLUDES = -I. -I$(DTTERMSRC)/TermPrim -I$(DTTERMSRC)/Term -I$(DTTERMSRC)/TermView
54
55 SRCS = \
56         DtTermLogit.c \
57         DtTermMain.c \
58         DtTermFallBackResources.c \
59         sunDtTermServer.c \
60         DtTermSyntax.c
61
62 OBJS = \
63         DtTermLogit.o \
64         DtTermMain.o \
65         DtTermFallBackResources.o \
66         sunDtTermServer.o \
67         DtTermSyntax.o
68
69 #ifdef  HPArchitecture
70 ARCHLIBS = $(XHPLIB)
71 #endif  /* HPArchitecture */
72
73
74        PROGRAMS = dtterm
75        LINTLIBS = $(USE_XHPLIB) $(XINPUTLIB) $(HELPLIB) \
76                   $(XPMLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
77
78 #ifdef CdeTicDefines
79 XCOMM Some systems support non-standard tic options.
80     TIC_DEFINES = CdeTicDefines
81 #endif
82
83 CppSourceFile(Dtterm.ad,Dtterm.ad.src,$(EXTRA_DEFINES),)
84 CppFileTarget(DtTermFallBackResources.c.src,Dtterm.ad.src,$(EXTRA_DEFINES) -DFALLBACK_RESOURCES,)
85
86 DtTermFallBackResources.c: DtTermFallBackResources.c.src
87         $(RM) $@
88         ./mkfallbk < DtTermFallBackResources.c.src > $@
89 includes:: DtTermFallBackResources.c
90 depend:: DtTermFallBackResources.c
91 clean::
92         $(RM) DtTermFallBackResources.c
93
94 dtterm.ti: terminfoChecklist
95         $(RM) $@
96         CPP="$(CPP) $(TIC_DEFINES)" ./terminfoCreate < terminfoChecklist > $@
97 includes:: dtterm.ti
98 depend:: dtterm.ti
99 all:: dtterm.ti
100 clean::
101         $(RM) dtterm.ti
102
103 ComplexProgramTarget(dtterm)