Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HexaSmarMotor
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tango-ds
DeviceClasses
Motion
Hexapods
HexaSmarMotor
Commits
7be2fcc8
Commit
7be2fcc8
authored
1 year ago
by
Johannes Blume
Browse files
Options
Downloads
Patches
Plain Diff
adapted Makefile to git
parent
7ce7c5d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+8
-19
8 additions, 19 deletions
Makefile
with
8 additions
and
19 deletions
Makefile
+
8
−
19
View file @
7be2fcc8
...
...
@@ -29,29 +29,18 @@ MAKE_ENV = $(TANGO_DIR)/Libraries/cppserver/common
#
PACKAGE_NAME
=
HexaSmarMotor
MAJOR_VERS
=
1
MINOR_VERS
=
1
0
MINOR_VERS
=
1
2
RELEASE
=
Release_
$(
MAJOR_VERS
)
_
$(
MINOR_VERS
)
usetrunk
?=
1
# #=============================================================================
# # RELEASE_TYPE
# # - DEBUG : debug symbols - no optimization
# # - OPTIMIZED : no debug symbols - optimization level set to O2
# #-----------------------------------------------------------------------------
ifeq
($(usetrunk), 1)
RELEASE_TYPE
=
DEBUG
endif
ifeq
($(usetrunk), 0)
RELEASE_TYPE
=
OPTIMIZED
endif
RELEASE_TYPE
?=
OPTIMIZED
ifeq
($(usetrunk), 1)
CTRLDIR
=
$(
TANGO_DIR
)
/DeviceClasses/Motion/Hexapods/HexaSmarUnit/trunk
endif
ifeq
($(usetrunk), 0)
CTRLDIR
=
$(
shell find
$(
TANGO_DIR
)
/DeviceClasses/Motion/Hexapods/HexaSmarUnit/tags
-type
d
-regex
'.*Release_[0-9]*_[0-9]*'
|
sort
-t
'_'
-k2
-k3
-nr
|
head
-1
)
endif
CTRLDIR
=
$(
TANGO_DIR
)
/DeviceClasses/Motion/Hexapods/HexaSmarUnit/
#=============================================================================
# OUTPUT_TYPE can be one of the following :
...
...
@@ -70,7 +59,7 @@ OUTPUT_TYPE = DEVICE
# - $HOME/DeviceServers if OUTPUT_TYPE is DEVICE
# - ../bin for others
#
OUTPUT_DIR
=
./bin/
$(
BIN_DIR
)
#
OUTPUT_DIR = ./bin/$(BIN_DIR)
...
...
@@ -88,7 +77,7 @@ INC_DIR_USER= -I . -I $(CTRLDIR)
# - for a device server, tango libraries directories are automatically appended
# - '-L ../lib' is automatically appended in all cases
#
LIB_DIR_USER
=
-L
$(
CTRLDIR
)
/
lib
LIB_DIR_USER
=
-L
$(
CTRLDIR
)
/
$(
_libdir
)
#=============================================================================
# LFLAGS_USR is the list of user link flags
...
...
@@ -156,12 +145,12 @@ ADDITIONAL_OBJS = $(CTRLDIR)/lib/libHexaSmarUnit.a
#=============================================================================
# include common targets
#
SPECIFIC_ALL_TARGET
=
$(
CTRLDIR
)
/
lib
/libHexaSmarUnit.a
SPECIFIC_ALL_TARGET
=
$(
CTRLDIR
)
/
$(
_libdir
)
/libHexaSmarUnit.a
SPECIFIC_CLEAN_TARGET
=
libclean
include
$(MAKE_ENV)/common_target.opt
$(CTRLDIR)/
lib
/libHexaSmarUnit.a
:
cd
$(
CTRLDIR
)
&&
$(
MAKE
)
OUTPUT_TYPE
=
STATIC_LIB
RELEASE_TYPE
=
$(
RELEASE_TYPE
)
OUTPUT_TYPE
=
STATIC_LIB
usetrunk
=
$(
usetrunk
)
OUTPUT_DIR
=
"
$(
CTRLDIR
)
/lib"
$(CTRLDIR)/
$(_libdir)
/libHexaSmarUnit.a
:
cd
$(
CTRLDIR
)
&&
$(
MAKE
)
OUTPUT_TYPE
=
STATIC_LIB
RELEASE_TYPE
=
$(
RELEASE_TYPE
)
libclean
:
cd
$(
CTRLDIR
)
&&
$(
MAKE
)
clean
...
...
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