Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
a02a9b20
Commit
a02a9b20
authored
7 years ago
by
DurgeshSamant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Makefile for python wrapper
parent
26460138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
example/sarsa_libraries/python_wrapper/Makefile
example/sarsa_libraries/python_wrapper/Makefile
+58
-0
No files found.
example/sarsa_libraries/python_wrapper/Makefile
0 → 100644
View file @
a02a9b20
#Directories
FA_DIR
=
../../sarsa_libraries/funcapprox
POLICY_DIR
=
../../sarsa_libraries/policy
HFO_SRC_DIR
=
../../../src
HFO_LIB_DIR
=
../../../lib
#Includes
INCLUDES
=
-I
$(FA_DIR)
-I
$(POLICY_DIR)
-I
$(HFO_SRC_DIR)
#Libs
FA_LIB
=
funcapprox
POLICY_LIB
=
policyagent
#Flags
CXXFLAGS
=
-shared
-g
-Wall
-std
=
c++11
-fPIC
LDFLAGS
=
-l
$(FA_LIB)
-l
$(POLICY_LIB)
-lhfo
-pthread
LDLIBS
=
-L
$(FA_DIR)
-L
$(POLICY_DIR)
-L
$(HFO_LIB_DIR)
LINKEROPTIONS
=
-Wl
,-rpath,
$(HFO_LIB_DIR)
#Compiler
CXX
=
g++
#Sources
SRC
=
FA_C_wrapper.cpp Policy_C_wrapper.cpp
#Objects
OBJ
=
$(SRC:.cpp=.o)
#Target
TARGET
=
C_wrappers.so
#Rules
.PHONY
:
$(FA_LIB)
all
:
$(TARGET)
.cpp.o
:
$(CXX)
$(CXXFLAGS)
$(INCLUDES)
-c
-o
$@
$
(
@F:%.o
=
%.cpp
)
$(FA_LIB)
:
$(MAKE)
-C
$(FA_DIR)
$(POLICY_LIB)
:
$(MAKE)
-C
$(POLICY_DIR)
$(TARGET)
:
$(FA_LIB) $(POLICY_LIB) $(OBJ)
$(CXX)
$(OBJ)
$(CXXFLAGS)
$(LDLIBS)
$(LDFLAGS)
-o
$(TARGET)
$(LINKEROPTIONS)
cleanfa
:
$(MAKE)
clean
-C
$(FA_DIR)
cleanpolicy
:
$(MAKE)
clean
-C
$(POLICY_DIR)
clean
:
cleanfa cleanpolicy
rm
-f
$(TARGET)
$(OBJ)
*
~
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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