From f42a02673123379c3a90b5c6cdfca4aa0c47e5f1 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Sun, 23 Dec 2012 12:22:31 -0800 Subject: [PATCH] Handle FreeBSD having openssl in base. --- Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a7d912c..f3888d14 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ -CFLAGS:=-O2 -Wall $(shell pkg-config --cflags openssl ao) -LDFLAGS:=-lm -lpthread $(shell pkg-config --libs openssl ao) + +MY_CFLAGS= $(shell pkg-config --cflags ao) +MY_LDFLAGS= $(shell pkg-config --libs ao) +ifeq ($(shell uname),FreeBSD) +MY_LDFLAGS+= -lssl +else +MY_CFLAGS+= $(shell pkg-config --cflags openssl) +MY_LDFLAGS+= $(shell pkg-config --libs openssl) +endif + +CFLAGS:=-O2 -Wall $(MY_CFLAGS) +LDFLAGS:=-lm -lpthread $(MY_LDFLAGS) + OBJS=socketlib.o shairport.o alac.o hairtunes.o all: hairtunes shairport