Commit e65d1165 authored by yoogx's avatar yoogx

* Add makefiles for LINUX32_DLL and LINUX64_DLL targets

        For openaadl/ocarina#162
parent 8bb6e5d9
......@@ -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
......
......@@ -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)
......
# 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:
# 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:
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