summaryrefslogtreecommitdiffstats
path: root/server/server.mk
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-02-09 13:07:51 -0500
committerSimo Sorce <idra@samba.org>2009-02-12 17:08:56 -0500
commit02618c33c2389922a69ebad38a9ee4143d1986a6 (patch)
tree8fd825807bbfcd7e24f469caff88f8a1e653d7dd /server/server.mk
parent31fe5d03d86cf6ce9ac8be414f99dd2ed99e5c7e (diff)
downloadsssd-02618c33c2389922a69ebad38a9ee4143d1986a6.tar.gz
sssd-02618c33c2389922a69ebad38a9ee4143d1986a6.tar.xz
sssd-02618c33c2389922a69ebad38a9ee4143d1986a6.zip
Adding sysdb_store_group_posix with unit test
Diffstat (limited to 'server/server.mk')
-rw-r--r--server/server.mk20
1 files changed, 16 insertions, 4 deletions
diff --git a/server/server.mk b/server/server.mk
index 348bbc8a7..4832f0041 100644
--- a/server/server.mk
+++ b/server/server.mk
@@ -10,7 +10,9 @@ UTIL_OBJ = \
sbus/sssd_dbus_connection.o \
sbus/sssd_dbus_server.o \
sbus/sbus_client.o \
- confdb/confdb.o \
+ confdb/confdb.o
+
+SYSDB_OBJ = \
db/sysdb.o
SERVER_OBJ = \
@@ -41,17 +43,20 @@ POLKIT_OBJ = \
MEMBEROF_OBJ = \
ldb_modules/memberof.o
+SYSDB_TEST_OBJ = \
+ tests/sysdb-tests.o
+
sbin/sssd: $(SERVER_OBJ) $(UTIL_OBJ)
$(CC) -o sbin/sssd $(SERVER_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
sbin/sssd_nss: $(NSSSRV_OBJ) $(UTIL_OBJ)
- $(CC) -o sbin/sssd_nss $(NSSSRV_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
+ $(CC) -o sbin/sssd_nss $(NSSSRV_OBJ) $(UTIL_OBJ) -lsysdb $(LDFLAGS) $(LIBS)
sbin/sssd_dp: $(DP_OBJ) $(UTIL_OBJ)
$(CC) -o sbin/sssd_dp $(DP_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
-sbin/sssd_be: $(DP_BE_OBJ) $(UTIL_OBJ)
- $(CC) -Wl,-E -o sbin/sssd_be $(DP_BE_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
+sbin/sssd_be: $(DP_BE_OBJ) $(UTIL_OBJ)
+ $(CC) -Wl,-E -o sbin/sssd_be $(DP_BE_OBJ) $(UTIL_OBJ) -lsysdb $(LDFLAGS) $(LIBS)
sbin/sssd_info: $(INFOPIPE_OBJ) $(UTIL_OBJ)
$(CC) -o sbin/sssd_info $(INFOPIPE_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
@@ -59,8 +64,15 @@ sbin/sssd_info: $(INFOPIPE_OBJ) $(UTIL_OBJ)
sbin/sssd_pk: $(POLKIT_OBJ) $(UTIL_OBJ)
$(CC) -o sbin/sssd_pk $(POLKIT_OBJ) $(UTIL_OBJ) $(LDFLAGS) $(LIBS)
+lib/libsysdb.$(SHLIBEXT): $(SYSDB_OBJ)
+ $(SHLD) $(SHLD_FLAGS) -o $@ $(SYSDB_OBJ) $(LDFLAGS) $(LIBS)
+
lib/libsss_proxy.$(SHLIBEXT): $(PROXY_BE_OBJ)
$(SHLD) $(SHLD_FLAGS) -o $@ $(PROXY_BE_OBJ) $(LDFLAGS) $(LIBS)
lib/memberof.$(SHLIBEXT): $(MEMBEROF_OBJ)
$(SHLD) $(SHLD_FLAGS) -o $@ $(MEMBEROF_OBJ) $(LDFLAGS) $(LDB_LIBS)
+
+#Tests
+tests/sysdb-tests: $(SYSDB_TEST_OBJ) $(UTIL_OBJ) lib/libsysdb.$(SHLIBEXT)
+ $(CC) -o tests/sysdb-tests $(SYSDB_TEST_OBJ) $(UTIL_OBJ) -lsysdb $(LDFLAGS) $(LIBS) $(CHECK_LIBS) \ No newline at end of file