File: site.def.LINUX

package info (click to toggle)
ivtools 0.6.2-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 10,236 kB
  • ctags: 31,595
  • sloc: ansic: 137,968; makefile: 20,655; cpp: 14,588; sh: 169
file content (117 lines) | stat: -rw-r--r-- 3,367 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
/* gcc command line with -V for version and -O for optimize */
#define CCDriver gcc

/* override -ansi -pedantic from xfree86.cf */
#undef DefaultCCOptions
#define DefaultCCOptions /**/

/* libg++ include directory -- usually does not change with new version of libg++ 
Debian: a bad hack, uses own streambuf.h instead g++ (this is probably 
temporary so try to change it 
*/

#define GPlusPlusIncludeDir /usr/include/g++

/* machine-specific gcc include directory -- does not change with each new version of gcc */
#define ToolIncludeDir /usr/local/include

/* link libraries for the above */
#undef ExtraCCLdLibs
#define ExtraCCLdLibs -lstdc++ -lm -lc

/* DEBIAN link libraries for the above and include libc */
#undef ExtraCCLdLibs
#define ExtraCCLdLibs -lstdc++ -lm -lc

/*
Debian: a bad hack, uses own streambuf.h instead g++ (this is probably 
temporary so try to change it 
this is done because of an odity in egcs (Debians main compiler for Alpha)
*/

#define ExtraCCIncludes -nostdinc++ -I$(TOP)/debian-include -I /usr/include/g++ 

/* this is needed in src/OverlayUnidraw/grayraster.c for the 'NAN' value
    with libc6 math library */
#define ExtraCCDefines -D_GNU_SOURCE

/* the major version number */

#define maj 0


/* command to create shared libraries */
#define SharedLibraryCmd(ldobjs,libname) gcc -shared -Wl,-soname,Concat(lib,libname.so.maj) -o $@ ldobjs -lc

/* use -rpath instead of -L to get slack developers shared libraries */
#define UseRpath YES




/*
 * Install a shared library on Linux.
 */
#ifndef InstallDynamicSharedLibrary
#define InstallDynamicSharedLibrary(libname,rev,dest)			@@\
install:: Concat(lib,libname.so.rev)					@@\
	MakeDir(dest)							@@\
	$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) dest   @@\
	-@if [ -f dest/Concat(lib,libname.so) ]; then exit 0; else \    @@\
	pushd dest; \                                                   @@\
        $(LN) Concat(lib,libname.so.maj) Concat(lib,libname.so); popd; fi
#endif

#ifndef NormalDynamicSharedLibraryTarget
#define NormalDynamicSharedLibraryTarget(libname,rev,depobjs,ldobjs)	@@\
AOUT = Concat(lib,libname.so.rev)					@@\
SHARED_CCFLAGS = SharedCCFlags						@@\
									@@\
AllTarget(Concat(lib,libname.so.rev))					@@\
									@@\
Concat(lib,libname.so.rev): depobjs					@@\
	@echo "building $@"						@@\
	$(RM) $@							@@\
	SharedLibraryCmd(ldobjs,libname)				@@\
	$(RM) Concat(lib,libname.so)					@@\
	$(LN) $@ Concat(lib,libname.so)					@@\
									@@\
clean::									@@\
	$(RM) Concat(lib,libname.so.rev)  Concat(lib,libname.so)
#endif




/* 
 * Enable/disable relative InterViews-style installation of binaries
 */
#undef InstallRelative
#define InstallRelative NO

/* 
/* 
 * Where to put binaries, libraries, and data files when InstallRelative is NO
 */ 
#if 0
#define BinDir /usr/local/bin
#define LibDir /usr/local/lib
#define LibAllDir /usr/local/lib/ivtools
#else
/* for DEBIAN */
#define InstalledRoot $(DESTDIR)/usr/X11R6 
#endif

/*
 * X11 directories -- remember to override XCONFIGDIR the
 * first time you run "make World".
 */
#define XConfigDir /usr/X11R6/lib/X11/config
#define XIncDir /usr/X11R6/include
#define XLibDir /usr/X11R6/lib

/* clippoly directory:  comment out if not available */
/* #define ClipPolyDir /proj/clippoly */

/* ACE directory: comment out if not available */
/* #define AceDir /proj/ACE_wrappers */