Commit 4471acfe authored by fengshaun's avatar fengshaun
Browse files

make should use clang on freebsd

parent a7b9ed16
......@@ -3,11 +3,16 @@ OBJS=$(addsuffix .o, $(basename $(SRCS)))
EXECUTABLE=test
LIBNAME=libbencode.so
CC=gcc
CFLAGS=-c -Wall -std=c11 -fPIC -g
CFLAGS=-c -Wall -std=c11 -fPIC -g -mno-tbm
#EXEC_LDFLAGS=-L. -lbencode -Wl,-rpath,$(pwd)
LIB_LDFLAGS=-shared -Wl,-soname,$(LIBNAME)
ifeq ($(shell uname -s),FreeBSD)
CC=clang
else
CC=gcc
endif
.SUFFIXES: .c
all: $(EXECUTABLE) $(LIBNAME)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment