Skip to content

Commit d125be3

Browse files
committed
Fixed micro makefiles
1 parent f31cd8f commit d125be3

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

srcCxx/makefile_rti_connext_micro_linux

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
######################################################################
22
# To compile, type:
3-
# make -f makefile_rti_connext_dds_linux
3+
# make -f makefile_rti_connext_micro_linux
44
# To compile with the Debug option, use:
5-
# make -f makefile_rti_connext_dds_linux DEBUG=1
5+
# make -f makefile_rti_connext_micro_linux DEBUG=1
66
#
77
# This makefile assumes that your build environment is already correctly
88
# configured. (For example, the correct version of your compiler and
@@ -21,9 +21,10 @@ endif
2121
COMPILER_FLAGS = -m64
2222
LINKER_FLAGS = -m64 -static-libgcc
2323

24-
split_path_name = $(subst /rti_, , $(RTIMEHOME))
24+
product_name = $(notdir $(RTIMEHOME))
25+
product_name := $(subst _dds,,$(product_name))
2526

26-
version_name = $(lastword $(split_path_name))
27+
version_name = $(lastword $(product_name))
2728
common_name = "_shape_main_linux"
2829
executable_name = $(version_name)$(common_name)
2930

@@ -44,7 +45,7 @@ COMPILER_FLAGS += -g -O0
4445
LINKER_FLAGS += -g
4546
LIBS = -L$(RTIMEHOME)/lib/$(RTIMEARCH) \
4647
-lrti_me_cppzd -lrti_me_netiosdmzd \
47-
-lrti_me_discdpdez -lrti_me_ddsfilterzd -lrti_me_rhsmzd \
48+
-lrti_me_discdpdezd -lrti_me_ddsfilterzd -lrti_me_rhsmzd \
4849
-lrti_me_whsmzd -lrti_mezd -lrti_me_ddsxtypeszd $(SYSLIBS)
4950
else
5051
# This option strips the executable symbols
@@ -73,7 +74,7 @@ $(OBJDIR)/$(EXEC) : $(AUTOGENSOURCES) $(AUTOGENOBJS) $(OBJDIR)/shape_main.o
7374
$(OBJDIR)/%.o : %.cxx
7475
$(COMPILER) $(COMPILER_FLAGS) -o $@ $(DEFINES) $(INCLUDES) -c $<
7576

76-
shape_main.cxx : shape_configurator_rti_connext_dds.h
77+
shape_main.cxx : shape_configurator_rti_connext_micro.h
7778

7879
# Generate type-specific sources
7980
$(AUTOGENSOURCES) : $(CDRSOURCES)

srcCxx/makefile_rti_connext_micro_macos

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
######################################################################
22
# To compile, type:
3-
# make -f makefile_rti_connext_dds_linux
3+
# make -f makefile_rti_connext_micro_linux
44
# To compile with the Debug option, use:
5-
# make -f makefile_rti_connext_dds_linux DEBUG=1
5+
# make -f makefile_rti_connext_micro_linux DEBUG=1
66
#
77
# This makefile assumes that your build environment is already correctly
88
# configured. (For example, the correct version of your compiler and
@@ -21,9 +21,10 @@ endif
2121
COMPILER_FLAGS = -std=c++11
2222
LINKER_FLAGS =
2323

24-
split_path_name = $(subst /rti_, , $(RTIMEHOME))
24+
product_name = $(notdir $(RTIMEHOME))
25+
product_name := $(subst _dds,,$(product_name))
2526

26-
version_name = $(lastword $(split_path_name))
27+
version_name = $(lastword $(product_name))
2728
common_name = "_shape_main_macos"
2829
executable_name = $(version_name)$(common_name)
2930

@@ -44,7 +45,7 @@ COMPILER_FLAGS += -g -O0
4445
LINKER_FLAGS += -g
4546
LIBS = -L$(RTIMEHOME)/lib/$(RTIMEARCH) \
4647
-lrti_me_cppzd -lrti_me_netiosdmzd \
47-
-lrti_me_discdpdez -lrti_me_ddsfilterzd -lrti_me_rhsmzd \
48+
-lrti_me_discdpdezd -lrti_me_ddsfilterzd -lrti_me_rhsmzd \
4849
-lrti_me_whsmzd -lrti_mezd -lrti_me_ddsxtypeszd $(SYSLIBS)
4950
else
5051
# This option strips the executable symbols
@@ -73,7 +74,7 @@ $(OBJDIR)/$(EXEC) : $(AUTOGENSOURCES) $(AUTOGENOBJS) $(OBJDIR)/shape_main.o
7374
$(OBJDIR)/%.o : %.cxx
7475
$(COMPILER) $(COMPILER_FLAGS) -o $@ $(DEFINES) $(INCLUDES) -c $<
7576

76-
shape_main.cxx : shape_configurator_rti_connext_dds.h
77+
shape_main.cxx : shape_configurator_rti_connext_micro.h
7778

7879
# Generate type-specific sources
7980
$(AUTOGENSOURCES) : $(CDRSOURCES)

0 commit comments

Comments
 (0)