-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (53 loc) · 1.88 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#-------------------------------------------------------------------------
#
# Copyright (c) 2022-2024 Rajit Manohar
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
#-------------------------------------------------------------------------
EXE=test_spef.$(EXT)
EXE2=test_sdf.$(EXT)
LIB1=libactannotate_$(EXT).a
LIB2=annotate_pass_$(EXT).so
LIB3=libactannotate_sh_$(EXT).so
LIB=$(LIB1) $(LIB2) $(LIB3)
TARGETS=$(EXE) $(EXE2)
TARGETLIBS=$(LIB)
TARGETINCS=spef.h spef.def sdf.h sdf.def
TARGETINCSUBDIR=act
LIBOBJ=spef.o sdf.o
MAIN=main.o
MAIN2=main2.o
OBJS=$(MAIN) $(LIBOBJ) $(MAIN2)
SHOBJS3=spef.os sdf.os
SHOBJS=annotate_pass.os $(SHOBJS3)
SRCS=$(OBJS:.o=.cc) $(SHOBJS:.os=.cc)
include $(ACT_HOME)/scripts/Makefile.std
$(EXE): $(MAIN) $(LIB) $(LIBACTDEPEND)
$(CXX) $(CFLAGS) $(MAIN) -o $(EXE) -lactannotate $(LIBACT)
$(EXE2): $(MAIN2) $(LIB) $(LIBACTDEPEND)
$(CXX) $(CFLAGS) $(MAIN2) -o $(EXE2) -lactannotate $(LIBACT)
$(LIB1): $(LIBOBJ)
ar ruv $(LIB1) $(LIBOBJ)
$(RANLIB) $(LIB1)
$(LIB2): $(SHOBJS)
$(ACT_HOME)/scripts/linkso $(LIB2) $(SHOBJS) $(SHLIBACTPASS)
$(LIB3): $(SHOBJS3)
$(ACT_HOME)/scripts/linkso $(LIB3) $(SHOBJS3) $(SHLIBACTPASS)
doc:
if [ ! -f Doxyfile ]; then doxygen -g; fi
doxygen
-include Makefile.deps