Commit bf5fb786 authored by Mart Lubbers's avatar Mart Lubbers
Browse files

add platformspecific sources because windows requires an extra object file

parent 06a7ec4e
Pipeline #46342 passed with stages
in 2 minutes and 32 seconds
......@@ -19,10 +19,12 @@ ifeq ($(OS), Windows_NT)
cp cdeps/wolfMQTT/src/libwolfmqtt_la-mqtt_packet.o src/Clean\ System\ Files/libwolfmqtt_la-mqtt_packet.$(SUFFIX)
cp cdeps/wolfMQTT/src/libwolfmqtt_la-mqtt_socket.o src/Clean\ System\ Files/libwolfmqtt_la-mqtt_socket.$(SUFFIX)
cp cdeps/_chkstk_ms.obj src/Clean\ System\ Files/
cp src-win/* src/
cp cdeps/wolfMQTT/src/.libs/libwolfmqtt_la-mqtt_client.o src/Clean\ System\ Files/libwolfmqtt_la-mqtt_client.$(SUFFIX)
cp cdeps/wolfMQTT/src/.libs/libwolfmqtt_la-mqtt_packet.o src/Clean\ System\ Files/libwolfmqtt_la-mqtt_packet.$(SUFFIX)
cp cdeps/wolfMQTT/src/.libs/libwolfmqtt_la-mqtt_socket.o src/Clean\ System\ Files/libwolfmqtt_la-mqtt_socket.$(SUFFIX)
cp src-posix/* src/
......@@ -3,12 +3,19 @@ CLEAN_HOME?=/opt/clean
.PHONY: clean
ifeq ($(OS), Windows_NT)
all: MQTTClient
%.prj: %.icl
cpm project $* create $(CLEAN_HOME)/etc/iTasks.prt
cpm project $@ root ..
cpm project $@ path add ../src
cpm project $@ path add ../src-$(SRC)
%: %.prj
cpm project $^ build
definition module _MQTT
implementation module _MQTT
definition module _MQTT
implementation module _MQTT
import code from library "_chkstk_ms."
......@@ -6,6 +6,8 @@ import code from "libwolfmqtt_la-mqtt_client."
import code from "libwolfmqtt_la-mqtt_packet."
import code from "libwolfmqtt_la-mqtt_socket."
import _MQTT
import qualified Data.Map as DM
import Data.Functor
import Data.Func
Supports Markdown
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