turn ucimap-example.c into a test case
[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 MKDIR=mkdir
15
16 ifeq ($(DEBUG),1)
17 COPTS = -O0
18 CFLAGS += -g3
19 endif
20 OS=$(shell uname)
21 ifeq ($(OS),Darwin)
22 LINK=$(LD)
23 SHLIB_EXT=dylib
24 SHLIB_FLAGS=-dylib
25 else
26 LINK=$(CC)
27 SHLIB_EXT=so
28 SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE)
29 endif
30