summaryrefslogtreecommitdiff
path: root/pkgtools/buildlink-x11/files/buildlinkX11.def
blob: fb75c9b9590e62817676472fd109a706fe77b8e9 (plain)
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
/*	$NetBSD: buildlinkX11.def,v 1.3 2001/08/22 17:45:57 jlam Exp $	*/

#ifdef AfterVendorCF

#ifdef UseInstalled
# ifdef BuildLink

/*
 * Force the buildlink include and lib directories to the head of the
 * compiler search paths.  The include directory is added through the
 * C{,plusplus}DebugFlags, which are the first options given to the
 * compiler.  The following variables should be defined in the environment:
 *
 *	BUILDLINK_DIR		the location of 3rd-party software
 *	BUILDLINK_X11_DIR	the location of the X11R6 hierarchy
 */

#  ifndef BuildLinkCppFlags
#   define BuildLinkCppFlags	-I$(BUILDLINK_DIR)/include $(PKGSRC_CPPFLAGS)
#  endif
#  ifndef BuildLinkLdFlags
#   define BuildLinkLdFlags	-L$(BUILDLINK_DIR)/lib $(PKGSRC_LDFLAGS)
#  endif
#  ifndef BuildLinkImakeCmd
#   ifdef X11ProjectRoot
#    define ImakeConfigDir	-I$(PREFIX)/lib/X11/config
#   else
#    define ImakeConfigDir	/**/
#   endif
#   ifdef BuildLinkX11
#    define BuildLinkImakeCmd	imake -DBuildLink -DBuildLinkX11 ImakeConfigDir
#   else
#    define BuildLinkImakeCmd	imake -DBuildLink ImakeConfigDir
#   endif
#  endif
#  ifdef DependFlags
#   undef DependFlags
#  endif
#  define DependFlags		BuildLinkCppFlags
#  ifdef OptimizedCDebugFlags
#   undef OptimizedCDebugFlags
#  endif
#  define OptimizedCDebugFlags	-O2 BuildLinkCppFlags $(PKGSRC_CFLAGS)
#  ifdef OptimizedCplusplusDebugFlags
#   undef OptimizedCplusplusDebugFlags
#  endif
#  define OptimizedCplusplusDebugFlags -O2 BuildLinkCppFlags $(PKGSRC_CXXFLAGS)
#  ifdef LdPreLib
#   undef LdPreLib
#  endif
#  define LdPreLib		BuildLinkLdFlags
#  ifdef LdPostLib
#   undef LdPostLib
#  endif
#  define LdPostLib		BuildLinkLdFlags
#  ifdef ImakeCmd
#   undef ImakeCmd
#  endif
#  define ImakeCmd		BuildLinkImakeCmd
# endif /* BuildLink */
#endif /* UseInstalled */

#endif /* AfterVendorCF */