Skip to content
Browse files

Handle FreeBSD having openssl in base.

  • Loading branch information...
1 parent 376b3a5 commit f42a02673123379c3a90b5c6cdfca4aa0c47e5f1 @splbio splbio committed Dec 23, 2012
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

0 comments on commit f42a026

Please sign in to comment.
Something went wrong with that request. Please try again.