-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (18 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (C) 2015 Amarisoft/LimeMicro
# TRX Makefile for LimeMicro Systems version LMS-MWC-16
CC=gcc #-m64
CXX=g++ -m64
AR=ar
CFLAGS=-O2 -fno-strict-aliasing -fomit-frame-pointer -Werror-implicit-function-declaration
CFLAGS+=-msse2 -mssse3 -msse4.1 -mavx -mpclmul
CFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS+=-MMD -g -Wno-unused-but-set-variable -Wno-unused-result -Wl,--no-undefined
CFLAGS+=-DHAVE_SSE -mfpmath=sse --param max-inline-insns-single=10000 --param large-function-growth=10000 --param inline-unit-growth=10000
CXXFLAGS:=-std=c++0x
LIBS:=-lLimeSuite
PROGS=trx_lms7002m.so
all: $(PROGS)
clean:
rm -f $(PROGS) *.lo *~ *.d *.so
trx_lms7002m.so: trx_lms7002m.cpp
@$(CXX) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $^ $(LIBS) -Wl,-z,defs