You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/core/plug-in/binrpcctrl/Makefile

44 lines
1.0 KiB

COREPATH =../..
plug_in_name = binrpcctrl
# Use following definitions if you whish
# to use libbinrpc included in SEMS' repos
# Remember to fetch the lib before compiling
# using: 'make libbinrpc'
#
LIBBINRPC_DIR?=libbinrpc/
LIBBINRPC_INC?=$(LIBBINRPC_DIR)include
LIBBINRPC_LIB?=$(LIBBINRPC_DIR)src
module_extra_objs = $(LIBBINRPC_LIB)/libbinrpc.a
extra_clean = libbinrpc_clean
# Use following definitions if you installed libbinrpc
#
#LIBBINRPC_INC?=/usr/local/include
#LIBBINRPC_LIB?=/usr/local/lib
#module_ldflags = -L$(LIBBINRPC_LIB) -lbinrpc
module_cflags = -DMOD_NAME=\"$(plug_in_name)\" -I$(LIBBINRPC_INC)
#%.o : %.c %.d
# $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
#
#%.d : %.c %.h Makefile
# $(CC) -MM $< $(CFLAGS) $(CPPFLAGS) > $@
libbinrpc:
svn co http://svn.berlios.de/svnroot/repos/libbinrpc/trunk/ && \
mv trunk libbinrpc && \
cd libbinrpc && \
$(MAKE) all
$(LIBBINRPC_LIB)/libbinrpc.a:
$(MAKE) -C $(LIBBINRPC_DIR) all CC=$(CC) LD=$(LD) AR=$(AR)
libbinrpc_clean:
$(MAKE) -C $(LIBBINRPC_DIR) clean
include ../Makefile.app_module