Commit b2838051 authored by yoogx's avatar yoogx

* Only define Linux_DLL platform, instead of 32/64 bits

          variants.

          For openaadl/ocarina#162
parent 25143275
......@@ -4,12 +4,10 @@ EXTRA_DIST=$(builddir)/Makefile.common $(srcdir)/Makefile.leon3-xm3 \
$(srcdir)/Makefile.leon.rtems \
$(srcdir)/Makefile.leon.rtems_posix \
$(srcdir)/Makefile.compcert $(srcdir)/Makefile.bench \
$(srcdir)/Makefile.linux32 \
$(srcdir)/Makefile.linux32_dll \
$(srcdir)/Makefile.linux32 $(srcdir)/Makefile.linux_dll \
$(srcdir)/Makefile.linux32-xenomai-native \
$(srcdir)/Makefile.linux32-xenomai-posix \
$(srcdir)/Makefile.linux64 \
$(srcdir)/Makefile.linux64_dll $(srcdir)/Makefile.win32 \
$(srcdir)/Makefile.linux64 $(srcdir)/Makefile.win32 \
$(srcdir)/Makefile.x86.linuxtaste \
$(srcdir)/Makefile.template $(srcdir)/Makefile.freertos \
$(srcdir)/Makefile.air
......
# 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:
......@@ -2,11 +2,11 @@
# instead of a regular binary
POHI_CFLAGS = -DDLL -fPIC \
-DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE \
-DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE \
$(GCC_GENERIC_FLAGS)
TARGET_LDFLAGS = -fPIC -pie -shared \
-lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ \
-lpthread -lrt -L$(RUNTIME_PATH)/libs/linux32/ \
-lm
EXEEXT=.so
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment