Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exercise_4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cp1_ws19
exercise_4
Commits
507bce1b
Commit
507bce1b
authored
5 years ago
by
Kevin Höllring
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile for PIC compilation
parent
405e63f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+3
-3
3 additions, 3 deletions
Makefile
with
3 additions
and
3 deletions
Makefile
+
3
−
3
View file @
507bce1b
...
@@ -9,8 +9,8 @@ INP_DIR = ./inputs
...
@@ -9,8 +9,8 @@ INP_DIR = ./inputs
OUT_DIR
=
./outputs
OUT_DIR
=
./outputs
# Build parameters
# Build parameters
LDFLAGS
=
-L
$(
LIB_DIR
)
$(
LIBRARY
)
LDFLAGS
=
-L
$(
LIB_DIR
)
-llibrary
CFLAGS
=
-Wall
-Werror
-I
$(
INCLUDE_DIR
)
-I
/usr/local/include
-fsanitize
=
address
CFLAGS
=
-Wall
-Werror
-I
$(
INCLUDE_DIR
)
-I
/usr/local/include
-fsanitize
=
address
-fPIC
SAMPLE_CFLAGS
=
-Wall
-I
$(
INCLUDE_DIR
)
-I
/usr/local/include
-fsanitize
=
address
SAMPLE_CFLAGS
=
-Wall
-I
$(
INCLUDE_DIR
)
-I
/usr/local/include
-fsanitize
=
address
CPPFLAGS
=
-std
=
c++14
CPPFLAGS
=
-std
=
c++14
CC
=
g++
CC
=
g++
...
@@ -67,7 +67,7 @@ test: init_test test_gradient_descent test_gradient_root test_conjugate_gradient
...
@@ -67,7 +67,7 @@ test: init_test test_gradient_descent test_gradient_root test_conjugate_gradient
build
:
init $(BINARIES)
build
:
init $(BINARIES)
$(TARGET_DIR)/%
:
$(BUILD_DIR)/%.o $(DEP_OBJ)
$(TARGET_DIR)/%
:
$(BUILD_DIR)/%.o $(DEP_OBJ)
$(
CC
)
$(
CFLAGS
)
$(
CPPFLAGS
)
-o
$@
$^
$(
LDFLAGS
)
$(
CC
)
-o
$@
$^
$(
LDFLAGS
)
test_gradient_descent
:
init_test $(TEST_GRADIENT_DESCENT_EXE)
test_gradient_descent
:
init_test $(TEST_GRADIENT_DESCENT_EXE)
timeout
30
$(
TEST_GRADIENT_DESCENT_EXE
)
timeout
30
$(
TEST_GRADIENT_DESCENT_EXE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment