Makefile.am 1.07 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2
AM_CPPFLAGS = -I.. -I../lib -I../drivers @SSLINC@ -D_GNU_SOURCE -D_THREAD_SAFE
3

4
noinst_LTLIBRARIES = libflist.la libfhelp.la libmapiipc.la libparseconf.la libprintfstring.la libmapilibhandler.la libmsearch.la libacsmx2.la
5 6 7 8
libflist_la_SOURCES = flist.c flist.h
libflist_la_DEPENDENCIES = mapi_errors.h
libfhelp_la_SOURCES = fhelp.c fhelp.h
libmapiipc_la_SOURCES = mapiipc.c mapiipc.h
9
libmapiipc_la_LIBADD = @SSLLIB@
10 11 12 13
libparseconf_la_SOURCES = parseconf.c parseconf.h
libprintfstring_la_SOURCES = printfstring.c printfstring.h
libmapilibhandler_la_SOURCES = mapilibhandler.c mapilibhandler.h
libmsearch_la_SOURCES = mstring.c mstring.h
14
libacsmx2_la_SOURCES = acsmx2.c acsmx2.h
15

16
noinst_HEADERS = mapi_errors.h
17 18 19 20 21 22 23 24 25

mapi_errors.h: ../errors.mapi
	echo -e "#ifndef _MAPI_ERRORS_H_ \n#define _MAPI_ERRORS_H_\n" > mapi_errors.h	
	echo -e "typedef struct errstrct{ \nint err_no;  \nchar *desc; 	\n} errorstruct;\n" >> mapi_errors.h
	cat ../errors.mapi|grep "^#" >> mapi_errors.h
	echo -e "#endif\n" >> mapi_errors.h

clean-local:
	-rm -f mapi_errors.h