1AM_CFLAGS = -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs 2if KERNELMODULES 3AM_CFLAGS += -I./../inc $(KERNEL_DIR)/include 4else 5AM_CFLAGS += -I./../inc 6endif 7#AM_CFLAGS += -DDEBUG -g 8 9common_CFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ 10if !KERNELMODULES 11common_LDFLAGS = -lrt @GLIB_LIBS@ 12endif 13 14if KERNELMODULES 15library_includedir = ../inc $(KERNEL_DIR)/include $(pkgincludedir) 16else 17library_includedir = $(pkgincludedir) 18endif 19 20c_sources = ipa_nat_drv.c \ 21 ipa_nat_drvi.c \ 22 ipa_nat_logi.c 23 24library_include_HEADERS = ./../inc/ipa_nat_drvi.h \ 25 ./../inc/ipa_nat_drv.h \ 26 ./../inc/ipa_nat_logi.h 27 28if KERNELMODULES 29noinst_LIBRARIES = libipanat.a 30libipanat_a_C = @C@ 31libipanat_a_SOURCES = $(c_sources) 32else 33lib_LTLIBRARIES = libipanat.la 34libipanat_la_C = @C@ 35libipanat_la_SOURCES = $(c_sources) 36libipanat_la_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS) 37libipanat_la_LDFLAGS = -shared $(common_LDFLAGS) -version-info 1:0:0 38endif 39