-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
36 lines (29 loc) · 1.36 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
include Makefile.inc
all: vtpin libxfamily vtpin_test inheritance_test inheritance_test_so
vtpin: $(SRCDIR)/vtpin.cxx
$(CXX) $(SRCDIR)/vtpin.cxx $(CXXEXTRAS) $(COMMONFLAGS) -I $(SRCDIR) $(DEBUG) -fPIC -shared \
-o $(BINDIR)/$(OUT_LIBTVPIN) \
$(LDFLAGS) -ldl #-fnon-call-exceptions
libxfamily: $(SRCDIR)/xfamily.cxx
$(CXX) $(SRCDIR)/xfamily.cxx $(CXXEXTRAS) $(COMMONFLAGS) $(DEBUG) -fPIC -shared \
-o $(BINDIR)/libxfamily.so \
$(LDFLAGS) -ldl
vtpin_test: $(SRCDIR)/vtpin_test.cxx
$(CXX) $(SRCDIR)/vtpin_test.cxx $(CXXEXTRAS) $(COMMONFLAGS) $(DEBUG) -L./$(BINDIR) \
-o $(BINDIR)/vtpin_test -lxfamily \
$(LDFLAGS) #-fnon-call-exceptions
inheritance_test: $(SRCDIR)/inheritance_test.cxx
$(CXX) $(SRCDIR)/inheritance_test.cxx $(CXXEXTRAS) $(COMMONFLAGS) $(DEBUG) -L./$(BINDIR) \
-o $(BINDIR)/inheritance_test \
$(LDFLAGS) #-fnon-call-exceptions
inheritance_test_so: $(SRCDIR)/inheritance_test.cxx
$(CXX) $(SRCDIR)/inheritance_test.cxx $(CXXEXTRAS) $(COMMONFLAGS) $(DEBUG) -L./$(BINDIR) -fPIC -shared \
-o $(BINDIR)/libinheritance_test.so -lxfamily \
$(LDFLAGS) -ldl #-fnon-call-exceptions
clean:
rm -f $(BINDIR)/libvtpin.so \
$(BINDIR)/libvtpin.dylib \
$(BINDIR)/vtpin_test \
$(BINDIR)/libxfamily.so \
$(BINDIR)/inheritance_test \
$(BINDIR)/libinheritance_test.so