1#--- $Id: make.linux.x86_64.gnu.dbg,v 1.7 2014/01/12 11:07:04 bzfkocht Exp $
2CC   	  	=	clang
3CPPFLAGS	+=	-DFREEMEM #-D__NO_MATH_INLINES
4CFLAGS		=	-O0 -m64 -g -Weverything -Wno-padded -Wno-switch-enum -Wno-covered-switch-default -Wno-static-in-inline -Wno-pedantic -Wno-format-nonliteral -Wno-shorten-64-to-32 -Wno-disable-macro-expansion -std=gnu99
5
6LDFLAGS		=	-lgmp -lm
7
8ifeq ($(ZLIB),true)
9LDFLAGS		+=	-lz
10endif
11
12ifeq ($(LINK),shared)
13LIBRARY		=	$(LIBDIR)/lib$(LIBNAME).so
14LIBLINK		=	$(LIBDIR)/lib$(NAME).$(BASE).so
15CFLAGS		+=	-fPIC
16AR		=	gcc -m64 -shared -o # the trailing space is important
17ARFLAGS		=       $(LDFLAGS)
18RANLIB		=	true
19endif
20
21ifeq ($(LINK),static)
22LDFLAGS		+=	-static
23endif
24