blob: 706da4f2d53684e25139cc2279ed163d8fcf031b (
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
|
/* $NetBSD: buildlinkX11.def,v 1.2 2001/08/08 07:23:28 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. It is _required_ that BUILDLINK_DIR be defined in the
* environment.
*/
# 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 */
|