another round of Makefile cleanup
[olsrd.git] / make / Makefile.osx
1 #
2 # MAC OSX SPECIFIC CONFIGURATION
3 #
4
5 INSTALL_PREFIX ?=
6 LIBDIR =        $(INSTALL_PREFIX)/usr/lib
7
8 SRCS +=         $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
9 HDRS +=         $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
10
11 DEFINES =       -D__MacOSX__
12 LIBS =          -lm -ldl
13
14 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
15 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
16                 /sbin/ldconfig