Debian Codegraph @

src/modules/db_unixodbc/Makefile

raw symbols SCIP
1 #
2 # WARNING: do not run this directly, it should be run by the main Makefile
3
4 include ../../Makefile.defs
5 auto_gen=
6 NAME=db_unixodbc.so
7
8 ifeq ($(CROSS_COMPILE),)
9 ODBCCFG=$(shell which odbc_config)
10 endif
11
12 ifneq ($(ODBCCFG),)
13
14 DEFS += $(shell $(ODBCCFG) --cflags )
15 LIBS += $(shell $(ODBCCFG) --libs)
16
17 else
18
19 # sql.h locations (freebsd,openbsd solaris)
20 DEFS += -I$(LOCALBASE)/include
21
22 # libodbc locations on RH/Suse, Solaris /OpenBSD, FreeBSD
23 # (Debian does the right thing and puts it in /usr/lib)
24 LIBS= -L$(LOCALBASE)/lib -lodbc
25 endif
26
27 include ../../Makefile.modules