Skip to content

Commit

Permalink
Make common a static library
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Aug 15, 2017
1 parent 7f66237 commit d4f78dc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/cli/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ dist_noinst_HEADERS = \
$(NULL)

authselect_SOURCES = \
../common/malloc.c \
../common/debug.c \
../common/utils.c \
cli_tool.c \
main.c \
$(NULL)
authselect_LDADD = \
$(top_builddir)/src/common/libcommon.la \
$(top_builddir)/src/lib/libauthselect.la \
$(POPT_LIBS) \
$(NULL)
Expand Down
19 changes: 19 additions & 0 deletions src/common/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/common \
-ggdb3 \
$(NULL)

dist_noinst_HEADERS = \
common.h \
gettext.h \
$(NULL)

noinst_LTLIBRARIES = \
libcommon.la \
$(NULL)

libcommon_la_SOURCES = \
malloc.c \
debug.c \
utils.c \
$(NULL)
libcommon_la_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
6 changes: 3 additions & 3 deletions src/lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ authselect_nsswitch_conf=@AUTHSELECT_NSSWITCH_CONF@
authselect_dconf_file=@AUTHSELECT_DCONF_FILE@

libauthselect_la_SOURCES = \
../common/malloc.c \
../common/debug.c \
../common/utils.c \
authselect.c \
authselect_dir.c \
authselect_profile.c \
Expand All @@ -40,6 +37,9 @@ libauthselect_la_SOURCES = \
authselect_activate.c \
authselect_util.c \
$(NULL)
libauthselect_la_LIBADD = \
$(top_builddir)/src/common/libcommon.la \
$(NULL)
libauthselect_la_CFLAGS = \
$(AM_CFLAGS) \
-DAUTHSELECT_CONFIG_DIR=\"$(authselect_config_dir)\" \
Expand Down

0 comments on commit d4f78dc

Please sign in to comment.