File: Makefile.conf

package info (click to toggle)
yudit 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,472 kB
  • sloc: cpp: 76,344; perl: 5,630; makefile: 989; ansic: 823; sh: 441
file content (120 lines) | stat: -rw-r--r-- 2,872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
ifeq ($(wildcard /etc/passwd),/etc/passwd)

TOPDIR = /home/gsinai/Build/Yudit/yudit-3.1.0
MSGMERGE=/usr/bin/msgmerge
HAVE_LOCALE = -DHAVE_LOCALE
HAVE_SET_IM_VALUES=-DHAVE_SET_IM_VALUES
NEED_SET_IM_VALUES_PROTO=-DNEED_SET_IM_VALUES_PROTO
prefix = /usr
PACKAGE_TARNAME = yudit
exec_prefix = ${prefix}
libexecdir = ${exec_prefix}/libexec
bindir = ${exec_prefix}/bin
datarootdir = ${prefix}/share
datadir = ${prefix}/share
mandir = ${datarootdir}/man
localedir = ${datarootdir}/locale
docdir= /usr/share/yudit/doc
LPR_COMMAND = /usr/bin/lpr
LPR_CFLAGS = -DLPR_COMMAND=\"/usr/bin/lpr\"
CXX = g++
CXXFLAGS = -g -O2
CFLAGS = -g -O2
LDFLAGS = 
LIBS = -lm 
TRANSLATE_LFLAGS = 
CPPFLAGS = -I$(TOPDIR) -DHAVE_LONG_LONG    -Wall -DHAVE_MMAP $(CFLAGS)
INSTALL = @INSTALL@
YUDIT_DATA = /usr/share/yudit
INSTALL = $(TOPDIR)/bin/install-sh -c
# Strip binary
INSTALL_PROGRAM = $(TOPDIR)/bin/install-sh -c -s
INSTALL_DATA = $(TOPDIR)/bin/install-sh -c -m 644

X_CFLAGS = 
X_LIBS = 
X_PRE_LIBS = 
X_EXTRA_LIBS = 
USE_X11 = -DUSE_X11=1
WITH_GUI = -DWITH_GUI=1
X11_LIB = -lX11

AR = ar cr
#
# For Sun's SUNWspro compiler you need to have CC's AR 
# otherwise you get linking errors, like:
#
# SVector<SString>::__vtbl    ../stoolkit/libstoolkit.a(SStringVector.o)
# [Hint: try checking whether the first non-inlined, 
# non-pure virtual function of class SVector<SString> is defined]
#
# Todo: put this in configure.
# AR = CC -xar -o 
#
#ALL_LIBS=wsock32.lib
RANLIB=ranlib
LD= $(CXX) $(LDFLAGS)


#INSTALL_DATA=/bin/cp
#INSTALL_PROGRAM=/bin/cp
MESSAGES=messages

OBJS=$(MODULES)
SPLATFORM=UNIX

# Mac Support
ifeq ($(shell uname -s),Darwin)
SWINDOWS=OSX
SWINDOW_FLAGS=-DUSE_X11=0 
CPPFLAGS:=$(CPPFLAGS) -DUSE_OSX
else
SWINDOWS=X11
SWINDOW_FLAGS=$(USE_X11) $(WITH_GUI) $(X_CFLAGS)
endif

#
# This TRANSLATE_LFLAGS  should not be here. But this works on solaris...
# or, does it?
ALL_LIBS=$(X_EXTRA_LIBS) $(X_LIBS) $(X11_LIB) $(LIBS) $(TRANSLATE_LFLAGS)

else
#
# TOPDIR and YUDIT_DATA is all your need.
#
UNIX_TOPDIR = /home/gsinai/Build/Yudit/yudit-3.1.0
TOPDIR=/Build/Yudit/$(notdir $(UNIX_TOPDIR:%/=%))
YUDIT_DATA=/usr/share/yudit
# These 4 will be ignored on windows.
bindir = /usr/bin
datarootdir = /usr/share
localedir=/usr/share/locale
docdir=/usr/share/yudit/doc

CPPFLAGS:=$(CPPFLAGS) -nologo -DUSE_WINAPI -DNO_SNPRINTF -I$(TOPDIR)
# Zi is debug on
CXX=cl /Zi
LD=cl  /Zi
AR=lib /out:
ALL_LIBS=advapi32.lib wsock32.lib shell32.lib
SPLATFORM=WINDOWS
SWINDOWS=WIN32
SWINDOW_FLAGS=
#
# Do not define HAVE_WS2_32_DLL 
# because it wont work on Windows95
#
#SWINDOW_LIBS=user32.lib ws2_32.lib gdi32.lib imm32.lib
SWINDOW_LIBS=user32.lib gdi32.lib imm32.lib
HAVE_LOCALE=
HAVE_SET_IM_VALUES=
NEED_SET_IM_VALUES_PROTO=-DNEED_SET_IM_VALUES_PROTO
endif

ifeq (x${YUDIT_MYTOOL},x)
  MYTOOL := $(TOPDIR)/mytool/mytool
else
  MYTOOL := ${YUDIT_MYTOOL}
endif

MYTOOL += -comment "created by mytool"