On OpenBSD, use FILE_MAP_OPTIMIZED.
[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 -DSHAPE -D_ILS_MACROS -DSUN_PERF \
13         -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
14         -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
15         -DKORNSHELL=\"$(KORNSHELL)\"
16
17 INCLUDES = -I./dtcopy
18
19 DEPLIBS = DepDtClientLibs
20 LOCAL_LIBRARIES = DtClientLibs
21 SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs
22
23 #ifdef AlphaArchitecture
24 EXTRA_DEFINES = -D_TOOLTALK
25 #endif
26
27 #ifdef OpenBSDArchitecture
28 EXTRA_DEFINES = -DFILE_MAP_OPTIMIZE
29 #endif
30
31 #if defined (SunArchitecture)
32 EXTRA_CCOPTIONS = -xF
33 #endif
34
35 #if defined(LinuxArchitecture)
36 EXTRA_INCLUDES = -I/usr/include/freetype2
37 #endif
38
39 #if defined(OpenBSDArchitecture) || defined(FreeBSDArchitecture)
40 EXTRA_INCLUDES = -I$(XPROJECTROOT)/include/freetype2
41 #endif
42
43 SRCS =  ChangeDir.c     ChangeDirP.c    Command.c       Common.c \
44         Desktop.c       Directory.c     Encaps.c        File.c \
45         FileDialog.c    FileManip.c     FileMgr.c       FileOp.c \
46         Filter.c        FilterP.c       Find.c          FindP.c \
47         Help.c          HelpCB.c        HelpP.c         IconWindow.c \
48         IconicPath.c    Main.c          Menu.c          MkDir.c \
49         ModAttr.c       ModAttrP.c      MultiView.c     OverWrite.c \
50         Prefs.c         PrefsP.c        SharedMsgs.c    SharedProcs.c \
51         ToolTalk.c      Trash.c         Utils.c         fsDialog.c \
52         version.c
53
54 DTCOPY_OBJS = dtcopy/sharedFuncs.o dtcopy/fsrtns.o
55
56 OBJS =  ChangeDir.o     ChangeDirP.o    Command.o       Common.o \
57         Desktop.o       Directory.o     Encaps.o        File.o \
58         FileDialog.o    FileManip.o     FileMgr.o       FileOp.o \
59         Filter.o        FilterP.o       Find.o          FindP.o \
60         Help.o          HelpCB.o        HelpP.o         IconWindow.o \
61         IconicPath.o    Main.o          Menu.o          MkDir.o \
62         ModAttr.o       ModAttrP.o      MultiView.o     OverWrite.o \
63         Prefs.o         PrefsP.o        SharedMsgs.o    SharedProcs.o \
64         ToolTalk.o      Trash.o         Utils.o         fsDialog.o \
65         version.o       $(DTCOPY_OBJS)
66
67 ComplexProgramTarget(dtfile)
68
69 LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
70                     -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
71
72 CPP_TARGETS = dtfile.config dtfile_error
73
74 AllTarget($(CPP_TARGETS))
75
76 CppSourceFile(dtfile.config,dtfile.config.cpp,$(LOCAL_CPP_DEFINES),)
77 MakeScriptFromCpp(dtfile_error,$(LOCAL_CPP_DEFINES))