minor makefile restructurings
[olsrd.git] / make / Makefile.obsd
1 #
2 # OPENBSD 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__OpenBSD__
12 LIBS =          
13
14 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
15 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
16                 /sbin/ldconfig
17
18 ifdef OLSRD_PLUGIN
19 CFLAGS +=       -fPIC
20 LDFLAGS +=      -fPIC
21 endif
22
23 OS_LIB_PTHREAD =
24 OS_LIB_DYNLOAD =