6b5617866979ec1d094892aa2443bdef235ef318
[oweals/cde.git] / cde / programs / dtcm / server / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 bin_PROGRAMS = rpc.cmsd
4
5 rpc_cmsd_CFLAGS = -I../../../lib/csa $(DT_INCDIR) $(CSA_INCDIR)
6
7 rpc_cmsd_LDADD = $(LIBCSA) $(DTCLIENTLIBS) $(XTOOLLIB) 
8
9 if SOLARIS
10 rpc_cmsd_CFLAGS += -xstrconst -Xc -v
11 rpc_cmsd_LDADD += -lsocket -lnsl -lintl -lm -ldl
12 endif
13
14 rpc_cmsd_SOURCES = parser.c access.c callback.c cmscalendar.c           \
15                    cmsconvert.c cmsentry.c cmsmatch.c delete.c          \
16                    garbage.c insert.c lexit.c list.c log.c lookup.c     \
17                    reclotick.c recount.c relasttick.c reminder.c        \
18                    renexttick.c repeat.c reprevtick.c rerule.c          \
19                    reutil.c tree.c utility.c v4ops.c v5ops.c            \
20                    cmsfunc.c programtable.c rtable2.c rtable3.c         \
21                    rtable4.c svcmain.c update.c access.h cmsentry.h     \
22                    insert.h parser.h tree.h callback.h cmsmatch.h       \
23                    lexer.h reminder.h update.h cmsattr.h data.h         \
24                    list.h repeat.h utility.h cmscalendar.h delete.h     \
25                    log.h reutil.h v4ops.h cmsconvert.h garbage.h        \
26                    lookup.h rpcextras.h v5ops.h
27
28 BUILT_SOURCES = parser.c parser.h
29 CLEANFILES = parser.c parser.h
30
31 AM_YFLAGS = -d
32
33 parser.c parser.h: parser.y
34         $(YACC) $(AM_YFLAGS) $<
35         $(SED) -e "s/yy/yyy/g" -e "/# line/d" y.tab.c > parser.c
36         $(SED) -e 's/yy/yyy/g' y.tab.h >  parser.h
37         $(RM) y.tab.c  y.tab.h
38