pool: Move the pool utility to its own directory in src

This commit is contained in:
Tobias Brunner 2013-09-05 18:00:48 +02:00
parent 5abe3c52d3
commit ec6ad6b086
10 changed files with 28 additions and 21 deletions

View File

@ -1478,6 +1478,7 @@ AC_CONFIG_FILES([
src/scepclient/Makefile src/scepclient/Makefile
src/pki/Makefile src/pki/Makefile
src/pki/man/Makefile src/pki/man/Makefile
src/pool/Makefile
src/dumm/Makefile src/dumm/Makefile
src/dumm/ext/extconf.rb src/dumm/ext/extconf.rb
src/libfast/Makefile src/libfast/Makefile

View File

@ -100,6 +100,10 @@ if USE_INTEGRITY_TEST
SUBDIRS += checksum SUBDIRS += checksum
endif endif
if USE_ATTR_SQL
SUBDIRS += pool
endif
if USE_TKM if USE_TKM
SUBDIRS += charon-tkm SUBDIRS += charon-tkm
endif endif

View File

@ -1,7 +1,6 @@
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir)/src/libstrongswan \ -I$(top_srcdir)/src/libstrongswan \
-I$(top_srcdir)/src/libhydra \ -I$(top_srcdir)/src/libhydra
-DPLUGINS=\""${pool_plugins}\""
AM_CFLAGS = \ AM_CFLAGS = \
-rdynamic -rdynamic
@ -17,10 +16,3 @@ libstrongswan_attr_sql_la_SOURCES = \
sql_attribute.h sql_attribute.c sql_attribute.h sql_attribute.c
libstrongswan_attr_sql_la_LDFLAGS = -module -avoid-version libstrongswan_attr_sql_la_LDFLAGS = -module -avoid-version
ipsec_PROGRAMS = pool
pool_SOURCES = pool.c pool_attributes.c pool_attributes.h \
pool_usage.h pool_usage.c
pool_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libhydra/libhydra.la
pool.o : $(top_builddir)/config.status

16
src/pool/Makefile.am Normal file
View File

@ -0,0 +1,16 @@
ipsec_PROGRAMS = pool
pool_SOURCES = \
pool.c pool_attributes.c pool_attributes.h \
pool_usage.h pool_usage.c
pool.o : $(top_builddir)/config.status
AM_CPPFLAGS = \
-I$(top_srcdir)/src/libstrongswan \
-I$(top_srcdir)/src/libhydra \
-DPLUGINS=\""${pool_plugins}\""
pool_LDADD = \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libhydra/libhydra.la

View File

@ -1284,4 +1284,3 @@ int main(int argc, char *argv[])
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }

View File

@ -714,4 +714,3 @@ void show_attr(void)
} }
} }
} }

View File

@ -61,5 +61,3 @@ void status_attr(bool hexout);
void show_attr(void); void show_attr(void);
#endif /* POOL_ATTRIBUTES_H_ */ #endif /* POOL_ATTRIBUTES_H_ */

View File

@ -124,4 +124,3 @@ Usage:\n\
lines are ignored. The file may not contain a --batch command.\n\ lines are ignored. The file may not contain a --batch command.\n\
\n"); \n");
} }

View File

@ -22,5 +22,4 @@
*/ */
void usage(void); void usage(void);
#endif /* POOL_USAGE_H_ */ #endif /* POOL_USAGE_H_ */