Link with C++ linker
[oweals/cde.git] / cde / programs / dtfile / Imakefile
1 XCOMM $XConsortium: Imakefile /main/10 1996/10/28 12:05:34 cde-hp $
2 #define IHaveSubdirs
3 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
4
5 SUBDIRS = dtcopy
6
7 MakeSubdirs($(SUBDIRS))
8 ForceSubdirs($(SUBDIRS))
9 DependSubdirs($(SUBDIRS))
10
11
12 DEFINES = -DMULTIBYTE -DXK_MISCELLANY -DSHAPE -D_ILS_MACROS -DSUN_PERF \
13         -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
14         -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
15
16 INCLUDES = -I./dtcopy
17
18 DEPLIBS = DepDtClientLibs
19 LOCAL_LIBRARIES = DtClientLibs
20 SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs
21
22 #ifdef AlphaArchitecture
23 EXTRA_DEFINES = -D_TOOLTALK
24 #endif
25
26 #if defined (SunArchitecture)
27 EXTRA_CCOPTIONS = -xF
28 #endif
29
30 XCOMM On Linux once you link against a C++ library the whole program
31 XCOMM has to be linked with the C++ linker
32 #if defined(LinuxDistribution)
33 CCLINK = $(CXX)
34 EXTRA_DEFINES = -I/usr/include/freetype2
35 #endif
36
37 SRCS =  ChangeDir.c     ChangeDirP.c    Command.c       Common.c \
38         Desktop.c       Directory.c     Encaps.c        File.c \
39         FileDialog.c    FileManip.c     FileMgr.c       FileOp.c \
40         Filter.c        FilterP.c       Find.c          FindP.c \
41         Help.c          HelpCB.c        HelpP.c         IconWindow.c \
42         IconicPath.c    Main.c          Menu.c          MkDir.c \
43         ModAttr.c       ModAttrP.c      MultiView.c     OverWrite.c \
44         Prefs.c         PrefsP.c        SharedMsgs.c    SharedProcs.c \
45         ToolTalk.c      Trash.c         Utils.c         fsDialog.c \
46         version.c
47
48 DTCOPY_OBJS = dtcopy/sharedFuncs.o dtcopy/fsrtns.o
49
50 OBJS =  ChangeDir.o     ChangeDirP.o    Command.o       Common.o \
51         Desktop.o       Directory.o     Encaps.o        File.o \
52         FileDialog.o    FileManip.o     FileMgr.o       FileOp.o \
53         Filter.o        FilterP.o       Find.o          FindP.o \
54         Help.o          HelpCB.o        HelpP.o         IconWindow.o \
55         IconicPath.o    Main.o          Menu.o          MkDir.o \
56         ModAttr.o       ModAttrP.o      MultiView.o     OverWrite.o \
57         Prefs.o         PrefsP.o        SharedMsgs.o    SharedProcs.o \
58         ToolTalk.o      Trash.o         Utils.o         fsDialog.o \
59         version.o       $(DTCOPY_OBJS)
60
61 ComplexProgramTarget(dtfile)
62
63 LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
64                     -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
65
66 CPP_TARGETS = dtfile.config dtfile_error
67
68 AllTarget($(CPP_TARGETS))
69
70 CppSourceFile(dtfile.config,dtfile.config.cpp,$(LOCAL_CPP_DEFINES),)
71 MakeScriptFromCpp(dtfile_error,$(LOCAL_CPP_DEFINES))