-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 783 Bytes
/
Makefile
File metadata and controls
38 lines (32 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FILES=\
fcompare.cpp \
flist.cpp \
fseq.cpp \
fshow.cpp \
fstring.cpp \
ftree.cpp \
fvector.cpp
OBJS=\
fcompare.o \
flist.o \
ftree.o \
fseq.o \
fshow.o \
fstring.o \
fvector.o
# IMPORTANT!
#
# -std=c++1z: libf requires C++17
# -fno-exceptions: libf does not use exceptions.
# -fno-rtti: libf does not use runtime type information.
# -nodefaultlibs: libf must not depend on the C++ stdlib. It does depend
# on libc, so we use must use -lc linker option.
CXX = clang++-4.0 -std=c++1z -fno-exceptions -fno-rtti -nodefaultlibs -fPIC \
-O2
COPTS = -fPIC
CLIBS = -lc -lgc
CLIB = $(OBJS)
libf.so: $(OBJS)
$(CXX) -shared -o libf++.so $(OBJS) $(CLIBS)
clean:
rm -f *.o *.s *.i