Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle FreeBSD having openssl in base.

  • Loading branch information...
commit f42a02673123379c3a90b5c6cdfca4aa0c47e5f1 1 parent 376b3a5
@splbio splbio authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 Makefile
View
15 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
Please sign in to comment.
Something went wrong with that request. Please try again.