Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
libbulletml
Commits
679183d0
Commit
679183d0
authored
Dec 12, 2017
by
Kiste
Browse files
debian makefile.patch
parent
9abc9380
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
679183d0
CC
=
g++
INCLUDES
=
-I
.
LIBS
=
tinyxml/tinyxml.o tinyxml/tinyxmlparser.o tinyxml/tinyxmlerror.o
#CXXFLAGS = -g -W -Wall -ansi -pedantic
#CXXFLAGS = -pg -g -W -Wall -ansi -pedantic
#CXXFLAGS = -O2 -W -Wall -ansi -pedantic -I. -I../d_cpp
CXXFLAGS
=
-O2
-W
-Wall
-ansi
-pedantic
CFLAGS
=
-O2
OBJS
=
bulletmlparser-tinyxml.o bulletmlparser.o bulletmltree.o calc.o formula-variables.o bulletmlrunner.o bulletmlrunnerimpl.o
LDFLAGS
=
INCLUDES
=
-I
.
-I
../d_cpp
OBJS
=
bulletmlparser-tinyxml.o bulletmlparser.o bulletmltree.o calc.o
\
formula-variables.o bulletmlrunner.o bulletmlrunnerimpl.o bulletml_d.o
all
:
libbulletml.a
MAJOR
=
0d2
MINOR
=
0
libbulletml.a
:
$(OBJS)
all
:
libbulletml.a libbulletml.so
libbulletml.so
:
tinyxml/tinyxml.o ../bulletml.d $(OBJS)
$(CXX)
$(LDFLAGS)
-shared
\
-Wl
,-soname,
$@
.
$(MAJOR)
\
-o
$@
.
$(MAJOR)
.
$(MINOR)
\
*
.o tinyxml/tiny
*
.o
rm
-f
$@
.
$(MAJOR)
ln
-s
$@
.
$(MAJOR)
.
$(MINOR)
$@
.
$(MAJOR)
rm
-f
$@
ln
-s
$@
.
$(MAJOR)
$@
libbulletml.a
:
tinyxml/tinyxml.o ../bulletml.d $(OBJS)
LC_ALL
=
C ar cru
$@
*
.o tinyxml/tiny
*
.o
../bulletml.d
:
bulletml_d.cpp
perl ../d_cpp/create_d_import.pl bulletml_d.cpp bulletml.d
tinyxml/tinyxml.o
:
$(MAKE)
-C
tinyxml
$(AR)
-r
libbulletml.a
*
.o tinyxml/tiny
*
.o
clean
:
rm
-f
*
.o
*
.a
rm
-f
*
.o
*
.a
test_bulletml
*
.so
*
.so.
*
$(MAKE)
-C
tinyxml clean
calc.cpp
:
calc.yy
bison
-y
calc.yy
&&
mv
y.tab.c calc.cpp
$(OBJS)
:
%.o: %.cpp
$(C
C
)
-c
$(CXXFLAGS)
$(INCLUDES)
$<
$(C
XX
)
-c
$(CXXFLAGS)
$(INCLUDES)
$<
doxy
:
doxygen
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment