fix segfault in uci batch
[project/uci.git] / Makefile.inc
1 prefix=/usr
2 DESTDIR=
3
4 COPTS=-O2
5 WOPTS=-pedantic -Werror -Wall
6 FPIC=-fPIC
7 CFLAGS=$(COPTS) $(WOPTS) -std=gnu99
8
9 AR=ar
10 LD=ld
11 CC=gcc
12 RANLIB=ranlib
13 INSTALL=install
14
15 ifeq ($(DEBUG),1)
16 COPTS = -O0
17 CFLAGS += -g3
18 endif
19 OS=$(shell uname)
20 ifeq ($(OS),Darwin)
21 LINK=$(LD)
22 SHLIB_EXT=dylib
23 SHLIB_FLAGS=-dylib
24 else
25 LINK=$(CC)
26 SHLIB_EXT=so
27 SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE)
28 endif
29