Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
e65d1165
Commit
e65d1165
authored
Jun 07, 2018
by
yoogx
Browse files
* Add makefiles for LINUX32_DLL and LINUX64_DLL targets
For openaadl/ocarina#162
parent
8bb6e5d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
share/make/Makefile.am
View file @
e65d1165
...
...
@@ -5,9 +5,11 @@ EXTRA_DIST=$(builddir)/Makefile.common $(srcdir)/Makefile.leon3-xm3 \
$(srcdir)
/Makefile.leon.rtems_posix
\
$(srcdir)
/Makefile.compcert
$(srcdir)
/Makefile.bench
\
$(srcdir)
/Makefile.linux32
\
$(srcdir)
/Makefile.linux32_dll
\
$(srcdir)
/Makefile.linux32-xenomai-native
\
$(srcdir)
/Makefile.linux32-xenomai-posix
\
$(srcdir)
/Makefile.linux64
$(srcdir)
/Makefile.win32
\
$(srcdir)
/Makefile.linux64
\
$(srcdir)
/Makefile.linux64_dll
$(srcdir)
/Makefile.win32
\
$(srcdir)
/Makefile.x86.linuxtaste
\
$(srcdir)
/Makefile.template
$(srcdir)
/Makefile.freertos
\
$(srcdir)
/Makefile.air
...
...
share/make/Makefile.common.in
View file @
e65d1165
...
...
@@ -117,7 +117,7 @@ else
endif
ifeq
($(TARGET), $(filter $(TARGET), linux32 linux64 linux32-xenomai-posix linux32-xenomai-native))
ifeq
($(TARGET), $(filter $(TARGET), linux32 linux64 linux32-xenomai-posix linux32-xenomai-native
linux32_dll linux64_dll
))
PO_HI_OBJS
+=
po_hi_lua.o
endif
...
...
@@ -327,8 +327,8 @@ $(BINARY):
fi
endif
ifeq
($(TARGET), $(filter $(TARGET), native bench linux32 linux64))
EXE
=
$(BINARY)
ifeq
($(TARGET), $(filter $(TARGET), native bench linux32 linux64
linux32_dll linux64_dll
))
EXE
=
$(BINARY)
$(EXEEXT)
$(BINARY)
:
$(MAKE)
generate-asn1-deployment target-objects compile-c-files compile-cpp-files compile-ada-files compile-po-hi
$(USER_OBJS)
$(GENERATED_OBJS)
$(TARGET_OBJECTS)
$(LD)
-o
$(EXE)
$(EXTERNAL_OBJECTS)
$(PO_HI_OBJS)
$(PO_HI_CPPOBJS)
$(GENERATED_OBJS)
$(USER_OBJS)
$(LDFLAGS)
...
...
share/make/Makefile.linux32_dll
0 → 100644
View file @
e65d1165
# The goal of this target is to generate a DLL from a PolyORB-HI/C
# instead of a regular binary
POHI_CFLAGS
=
-DDLL
-fPIC
\
-DPOSIX
-m32
-D_POSIX_SOURCE
-D_GNU_SOURCE
\
$(GCC_GENERIC_FLAGS)
TARGET_LDFLAGS
=
-fPIC
-pie
-shared
\
-lpthread
-lrt
-m32
-L
$(RUNTIME_PATH)
/libs/linux32/
\
-lm
EXEEXT
=
.so
SIMULINK_LDFLAGS
=
-lm
CC
=
gcc
LD
=
gcc
GPROF
=
gprof
USE_USB_BRICK
=
$(
shell
grep
__PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc
-l
)
ifdef
USE_GPROF
TARGET_LDFLAGS
+=
-pg
endif
ifeq
($(USE_USB_BRICK),1)
TARGET_LDFLAGS
+=
-lSpaceWireUSBAPI
-lConfigLibraryUSB
endif
target-clean
:
target-objects
:
share/make/Makefile.linux64_dll
0 → 100644
View file @
e65d1165
# The goal of this target is to generate a DLL from a PolyORB-HI/C
# instead of a regular binary
POHI_CFLAGS
=
-DDLL
-fPIC
\
-DPOSIX
-m64
-D_POSIX_SOURCE
-D_GNU_SOURCE
\
$(GCC_GENERIC_FLAGS)
TARGET_LDFLAGS
=
-fPIC
-pie
-shared
\
-lpthread
-lrt
-m64
-L
$(RUNTIME_PATH)
/libs/linux64/
\
-lm
EXEEXT
=
.so
SIMULINK_LDFLAGS
=
-lm
CC
=
gcc
LD
=
gcc
GPROF
=
gprof
USE_USB_BRICK
=
$(
shell
grep
__PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc
-l
)
ifdef
USE_GPROF
TARGET_LDFLAGS
+=
-pg
endif
ifeq
($(USE_USB_BRICK),1)
TARGET_LDFLAGS
+=
-lSpaceWireUSBAPI
-lConfigLibraryUSB
endif
target-clean
:
target-objects
:
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment