From 881f818c3765de2d90e463c294b7975ee8147d36 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 27 Feb 2016 09:32:56 +0100
Subject: Haiku hacks


diff --git a/build/Makefile b/build/Makefile
index a8b417c..1b8e939 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -9,6 +9,10 @@ LDFLAGS=-lc -lm  -ldl  -lpthread
 LIBHXCFE = libhxcfe.so
 LIBUSBHXCFE = libusbhxcfe.so
 
+ifeq ($(UNAME), Haiku)
+LDFLAGS=
+endif
+
 ifeq ($(UNAME), Darwin)
 CFLAGS += -arch i386
 LDFLAGS += -arch i386
@@ -29,8 +33,8 @@ EXEC=hxcfe
 
 all: $(EXEC)
 
-hxcfe:  hxcfe.o ../../../build/libhxcadaptor.a $(LIBHXCFE) $(LIBUSBHXCFE)
-	$(CC) -o $@    $^ $(LDFLAGS)
+hxcfe:  hxcfe.o
+	$(CC) -o $@ -lhxcadaptor -lhxcfe -lusbhxcfe  $^ $(LDFLAGS)
 	cp $@ ../../../build
 
 $(LIBHXCFE): ../../../build/$(LIBHXCFE)
-- 
2.7.0

