File: makevars.def

package info (click to toggle)
ivtools 0.7.9-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 15,032 kB
  • ctags: 41,591
  • sloc: ansic: 156,945; makefile: 36,344; cpp: 15,040; sh: 2,192
file content (52 lines) | stat: -rw-r--r-- 1,446 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
/* 
 * Macro for defining makefile variable for library linking
 */
#undef libvar
#if HasDynamicSharedLibraries
#if !UseRpath
#ifdef UseInstalled
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = -L$(LIBDIR) lllibname
#else
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = -L$(PCKGSRC)/llibname/$(CPU) lllibname
#endif
#else
#ifdef UseInstalled
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) lllibname	
#else
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = -Wl,-rpath,$(PCKGSRC)/llibname/$(CPU) -L$(PCKGSRC)/llibname/$(CPU) lllibname	
#endif
#endif
#else
#ifdef UseInstalled
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = $(LIBDIR)/liblibname.a
#else
#define libvar(ULIBNAME, PCKGSRC, llibname, liblibname, lllibname) \
  ULIBNAME = $(PCKGSRC)/llibname/$(CPU)/liblibname.a
#endif
#endif

/*
 * Macro for defining library dependency make variable.
 */
#if defined(HPArchitecture)
#define SO sl
#else
#define SO so
#endif

#undef depvar
#if HasDynamicSharedLibraries
#ifndef UseInstalled
#define depvar(ULIBNAME, PCKGSRC, llibname, liblibname, libver) \
  ULIBNAME = $(PCKGSRC)/llibname/$(CPU)/liblibname.SO.libver
#else
#define depvar(ULIBNAME, PCKGSRC, llibname, liblibname, libver) \
  ULIBNAME = $(LIBDIR)/liblibname.SO.libver
#endif
#endif