# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * This source file is part of libspmt. * # * * # * See the file "LICENSE" for the copyright information and for * # * the terms and conditions for copying, distribution and * # * modification of this source file. * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # $Date$ ## Process this file with automake to produce Makefile.in lib_LTLIBRARIES = libspmt.la include_HEADERS = spmt.h # FIXME: make WPA mode exclude modules that aren't reachable through spmt.h if WPA libspmt_la_SOURCES = private.c private.c: $(ACTUAL_SOURCES) else # !WPA libspmt_la_SOURCES = $(ACTUAL_SOURCES) endif # !WPA # FIXME: see if this line can be moved earlier in the file include Makefile.sources.am libspmt_la_LDFLAGS = -version-info 0:0:0 include $(top_srcdir)/Makefile.common.am options.c: options.boolean options.integer options.process ./options.process # FIXME: may be able to rename ACTUAL_SOURCES to SOURCES # modules.process may regenerate Makefile.sources.am which defines ACTUAL_SOURCES and ENUMS modules.list: $(ACTUAL_SOURCES) $(ENUMS) echo $? > modules.list ./modules.process AM_CFLAGS += @LIBCONFIG_CFLAGS@ # libraries should have linker flags in LIBADD not LDADD # FIXME: this may apply to PTHREAD_LIBS as well libspmt_la_LIBADD = @LIBCONFIG_LIBS@ if OPT if GCC if GCC_4_0 AM_CFLAGS += @GCC_4_0_OPT_CFLAGS@ endif # GCC_4_0 if GCC_4_1 AM_CFLAGS += @GCC_4_0_OPT_CFLAGS@ AM_CFLAGS += @GCC_4_1_OPT_CFLAGS@ if !LANG_CXX AM_CFLAGS += @GCC_4_1_C_ONLY_OPT_CFLAGS@ endif # !LANG_CXX endif # GCC_4_1 if GCC_4_3 AM_CFLAGS += @GCC_4_0_OPT_CFLAGS@ AM_CFLAGS += @GCC_4_1_OPT_CFLAGS@ if !LANG_CXX AM_CFLAGS += @GCC_4_1_C_ONLY_OPT_CFLAGS@ endif # !LANG_CXX endif # GCC_4_3 endif # GCC endif # OPT if WPA if GCC AM_CFLAGS += @GCC_WPA_CFLAGS@ endif # GCC endif # WPA if PROFILING if GCC AM_CFLAGS += @GCC_PROFILING_CFLAGS@ endif # GCC endif # PROFILING if GCOV if GCC AM_CFLAGS += @GCC_GCOV_CFLAGS@ endif # GCC endif # GCOV