-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMake.linux
More file actions
32 lines (26 loc) · 800 Bytes
/
Make.linux
File metadata and controls
32 lines (26 loc) · 800 Bytes
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
# Linux build configuration
include Make.unix
# Pick a compiler...
compiler ?= gcc
compiler ?= tcc
compiler ?= clang
########################################################################
# LIBTCL compile/link flags
TCL_FLAGS ?= -I/usr/include/tcl
LIBTCL ?= -L/usr/lib -ltcl8.5 -lm -ldl
########################################################################
# TCC=Compiler for target platform binaries.
# BCC=Compiler for local native binaries.
ifeq (gcc,$(compiler))
BCC ?= gcc -g -fPIC -UNDEBUG -DDEBUG -Wall
BCC += -std=c89
endif
ifeq (tcc,$(compiler))
BCC ?= tcc -g -Wall
endif
ifeq (clang,$(compiler))
BCC ?= clang -g -Wall
endif
# Force regeneration of sqlite4.h if any makefiles change...
parse.h sqlite4.h: $(MAKEFILE_LIST)
$(MAKEFILE_LIST):