Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
makefiles
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
makefiles
Commits
822939a8
Commit
822939a8
authored
1 year ago
by
Alessio Igor Bogani
Browse files
Options
Downloads
Patches
Plain Diff
Backport Voltumna trick to Make-9.3.4.in
parent
fb7ab71b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Make-9.3.4.in
+16
-11
16 additions, 11 deletions
Make-9.3.4.in
with
16 additions
and
11 deletions
Make-9.3.4.in
+
16
−
11
View file @
822939a8
...
@@ -26,12 +26,17 @@ ifeq ($(origin SDKTARGETSYSROOT),undefined)
...
@@ -26,12 +26,17 @@ ifeq ($(origin SDKTARGETSYSROOT),undefined)
CXXFLAGS += -std=c++0x
CXXFLAGS += -std=c++0x
endif
endif
else
else
CXXFLAGS += -std=
c
++1
1
CXXFLAGS += -std=
gnu
++1
4
endif
endif
INC_DIR = -I${TANGO_INC} -I${LOG4TANGO_INC} -I${OMNIORB_INC} -I${ZMQ_INC} -I${RUNTIME_INC}
INC_DIR = -I${TANGO_INC} -I${LOG4TANGO_INC} -I${OMNIORB_INC} -I${ZMQ_INC} -I${RUNTIME_INC}
LIB_DIR = -L${TANGO_LIB} -L${OMNIORB_LIB} -L${ZMQ_LIB} -L${RUNTIME_LIB} -L/usr/local/lib
LIB_DIR = -L${TANGO_LIB} -L${OMNIORB_LIB} -L${ZMQ_LIB} -L${RUNTIME_LIB} -L/usr/local/lib
else
else
CXXFLAGS += -std=gnu++11
HASH = $(shell echo $(SDKTARGETSYSROOT) $(OECORE_DISTRO_VERSION) $(CXX) | md5sum | cut -d ' ' -f 1)
HASHDIR = $(HASH)/
HASHEDIR = $(HASH)\/
POINTHASH = .$(HASH)
CXXFLAGS += -std=gnu++14
INC_DIR = -I${SDKTARGETSYSROOT}/usr/include/tango
INC_DIR = -I${SDKTARGETSYSROOT}/usr/include/tango
endif
endif
...
@@ -62,26 +67,26 @@ LDFLAGS += $(LIB_DIR) -ltango -lomniORB4 -lomniDynamic4 \
...
@@ -62,26 +67,26 @@ LDFLAGS += $(LIB_DIR) -ltango -lomniORB4 -lomniDynamic4 \
# Set dependencies
# Set dependencies
#-----------------------------------------
#-----------------------------------------
SRC_FILES += $(wildcard src/*.cpp)
SRC_FILES += $(wildcard src/*.cpp)
OBJ_FILES += $(addprefix obj/,$(notdir $(SRC_FILES:.cpp=.o)))
OBJ_FILES += $(addprefix obj/
$(HASHDIR)
,$(notdir $(SRC_FILES:.cpp=.o)))
obj/%.o: $(SRC_FILES:%.cpp)
obj/
$(HASHDIR)
%.o: $(SRC_FILES:%.cpp)
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(CXX) $(CXXFLAGS) -c -o $@ $<
.nse_depinfo: $(SRC_FILES)
.nse_depinfo
$(POINTHASH)
: $(SRC_FILES)
@$(CXX) $(CXXFLAGS) -M -MM $^ | sed 's/\(.*\)\.o/obj\/\1.o/g' > $@
@$(CXX) $(CXXFLAGS) -M -MM $^ | sed 's/\(.*\)\.o/obj\/
$(HASHEDIR)
\1.o/g' > $@
-include .nse_depinfo
-include .nse_depinfo
$(POINTHASH)
#-----------------------------------------
#-----------------------------------------
# Main make entries
# Main make entries
#-----------------------------------------
#-----------------------------------------
bin/$(NAME_SRV): bin obj $(OBJ_FILES)
bin/$(NAME_SRV): bin obj
/$(HASH)
$(OBJ_FILES)
$(CXX) $(CXXFLAGS) $(OBJ_FILES) -o bin/$(NAME_SRV) $(LDFLAGS)
$(CXX) $(CXXFLAGS) $(OBJ_FILES) -o bin/$(NAME_SRV) $(LDFLAGS)
clean:
clean:
@rm -fr obj/ bin/ core* .nse_depinfo src/*~
@rm -fr obj/ bin/ core* .nse_depinfo
*
src/*~
bin obj:
bin obj
/$(HASH)
:
@
test -d $@ || mkdir $@
@test -d $@ || mkdir
-p
$@
#-----------------------------------------
#-----------------------------------------
# Target specific options
# Target specific options
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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