summaryrefslogtreecommitdiff
path: root/project/depends.mk
blob: b640a15fe68c5e8b6e197e2b335b48f30ecf5517 (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
# shared extensions: dependency switches
CFLAGS_NCURSES          += -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses
LDFLAGS_NCURSES         += -Wl,--as-needed $(LDFLAGS_NCURSES_LIBS) -Wl,--no-as-needed

CFLAGS_SQLITE           += -I$(SYSROOT)/usr/local/include/sqlite3 -I$(SYSROOT)/usr/include/sqlite3
CFLAGS_SQLITE           += -DMODULE_NAME=\"sqlite3\"
CFLAGS_SQLITE           += -DSQLITE_OMIT_LOAD_EXTENSION
LDFLAGS_SQLITE          += -lsqlite3

CFLAGS_EXPAT            += -DXML_DEV_URANDOM
LDFLAGS_EXPAT           += -lexpat

CFLAGS_DBM              +=
LDFLAGS_DBM             += -lgdbm_compat

CFLAGS_TCLTK            += -DWITH_APPINIT
LDFLAGS_TCLTK           += $(LDFLAGS_TCLTK_LIBS)

# static extensions: dependency switch
LDFLAGS_PYEXT_STATIC    += -lssl -lcrypto -lgdbm -lreadline
LDFLAGS_PYEXT_STATIC    += -lbz2 -lffi -lintl -llzma -lz
LDFLAGS_NCURSES_STATIC  += $(LDFLAGS_NCURSES)
LDFLAGS_SQLITE_STATIC   += $(LDFLAGS_SQLITE)
LDFLAGS_EXPAT_STATIC    += $(LDFLAGS_EXPAT)
LDFLAGS_DBM_STATIC      += $(LDFLAGS_DBM)
LDFLAGS_TCLTK_STATIC    += $(LDFLAGS_TCLTK)