| 1 | include $(top_srcdir)/Makefile.am.common
|
|---|
| 2 |
|
|---|
| 3 | noinst_LTLIBRARIES = libheim-ipcc.la libheim-ipcs.la
|
|---|
| 4 |
|
|---|
| 5 | dist_libheim_ipcc_la_SOURCES = hi_locl.h heim_ipc_types.h client.c common.c
|
|---|
| 6 | dist_libheim_ipcs_la_SOURCES = hi_locl.h heim_ipc_types.h server.c common.c
|
|---|
| 7 |
|
|---|
| 8 | include_HEADERS = heim-ipc.h
|
|---|
| 9 |
|
|---|
| 10 | ##
|
|---|
| 11 | ## Enable when this is not a noinst_ library
|
|---|
| 12 | ##
|
|---|
| 13 | #libheim_ipcc_la_LDFLAGS = -version-info 0:0:0
|
|---|
| 14 | #libheim_ipcs_la_LDFLAGS = -version-info 0:0:0
|
|---|
| 15 | #
|
|---|
| 16 | #if versionscript
|
|---|
| 17 | #libheim_ipcc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-scriptc.map
|
|---|
| 18 | #libheim_ipcs_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-scripts.map
|
|---|
| 19 | #endif
|
|---|
| 20 |
|
|---|
| 21 | libheim_ipcc_la_LIBADD = \
|
|---|
| 22 | $(LIB_heimbase) \
|
|---|
| 23 | $(LIB_roken) \
|
|---|
| 24 | $(PTHREAD_LIBADD)
|
|---|
| 25 |
|
|---|
| 26 | libheim_ipcs_la_LIBADD = $(libheim_ipcc_la_LIBADD)
|
|---|
| 27 |
|
|---|
| 28 | TESTS = $(check_PROGRAMS)
|
|---|
| 29 |
|
|---|
| 30 | noinst_PROGRAMS = tc ts ts-http
|
|---|
| 31 |
|
|---|
| 32 | ts_LDADD = libheim-ipcs.la $(LIB_roken)
|
|---|
| 33 | ts_http_LDADD = $(ts_LDADD)
|
|---|
| 34 | tc_LDADD = libheim-ipcc.la $(LIB_roken)
|
|---|
| 35 |
|
|---|
| 36 | if have_gcd
|
|---|
| 37 |
|
|---|
| 38 | EXTRA_DIST = heim_ipc.defs heim_ipc_async.defs heim_ipc_reply.defs
|
|---|
| 39 |
|
|---|
| 40 | heim_ipc.h heim_ipcUser.c heim_ipcServer.c heim_ipcServer.h: heim_ipc.defs
|
|---|
| 41 | mig -header heim_ipc.h -user heim_ipcUser.c -sheader heim_ipcServer.h -server heim_ipcServer.c -I$(srcdir) $(srcdir)/heim_ipc.defs
|
|---|
| 42 |
|
|---|
| 43 | heim_ipc_async.h heim_ipc_asyncUser.c heim_ipc_asyncServer.c heim_ipc_asyncServer.h: heim_ipc_async.defs
|
|---|
| 44 | mig -header heim_ipc_async.h -user heim_ipc_asyncUser.c -sheader heim_ipc_asyncServer.h -server heim_ipc_asyncServer.c -I$(srcdir) $(srcdir)/heim_ipc_async.defs
|
|---|
| 45 |
|
|---|
| 46 | heim_ipc_reply.h heim_ipc_replyUser.c: heim_ipc_reply.defs
|
|---|
| 47 | mig -header heim_ipc_reply.h -user heim_ipc_replyUser.c -sheader /dev/null -server /dev/null -I$(srcdir) $(srcdir)/heim_ipc_reply.defs
|
|---|
| 48 |
|
|---|
| 49 | built_ipcc = heim_ipc.h heim_ipcUser.c
|
|---|
| 50 | built_ipcc += heim_ipc_asyncServer.c heim_ipc_asyncServer.h
|
|---|
| 51 |
|
|---|
| 52 | nodist_libheim_ipcc_la_SOURCES = $(built_ipcc)
|
|---|
| 53 |
|
|---|
| 54 | built_ipcs = heim_ipcServer.c heim_ipcServer.h
|
|---|
| 55 | built_ipcs += heim_ipc_asyncUser.c heim_ipc_async.h
|
|---|
| 56 | built_ipcs += heim_ipc_reply.h heim_ipc_replyUser.c
|
|---|
| 57 |
|
|---|
| 58 | nodist_libheim_ipcs_la_SOURCES = $(built_ipcs)
|
|---|
| 59 |
|
|---|
| 60 | libheim_ipcs_la_LIBADD += -lbsm
|
|---|
| 61 |
|
|---|
| 62 | CLEANFILES = $(built_ipcc) $(built_ipcs)
|
|---|
| 63 |
|
|---|
| 64 | $(srcdir)/client.c: $(built_ipcc)
|
|---|
| 65 | $(srcdir)/server.c: $(built_ipcs)
|
|---|
| 66 |
|
|---|
| 67 | endif
|
|---|