Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix make dist
[simgrid.git] / src / gras / Makefile.am
1 SUBDIRS=. Tests
2 DISTCLEANFILES=Makefile.in
3 INCLUDES= -I$(top_srcdir)/src/include -I../nws_portability/Include  \
4           @CFLAGS_XML@ @CFLAGS_SimGrid@
5 EXTRA_DIST=                 \
6         gras_private.h      \
7         Core/dict_private.h \
8         gs/gs_private.h     \
9         gs/parse.yy.l      
10
11
12 lib_LIBRARIES= libgrasrl.a libgrassg.a
13
14 noinst_LIBRARIES=libgrasutils.a
15
16 #                     Core/dict_multi.c
17 #  Common/gras.c      Common/gras_datadesc.c        Common/gras_msg.c            
18 #   Messaging/messaging.c                       
19
20 COMMON_S=\
21   \
22   Core/module.c                                                                 \
23   Core/log.c         Core/log_default_appender.c   Core/error.c                 \
24   Core/dynar.c                                                                  \
25   Core/dict.c        Core/dict_elm.c               Core/dict_cursor.c           \
26   \
27   Core/config.c                               \
28   \
29   Messaging/transport.c    Messaging/transport_private.h      \
30   Messaging/transport_sg.c Messaging/transport_tcp.c          \
31   \
32   Messaging/datadesc_simple.c                 \
33   \
34   gs/datadesc.c                               \
35   gs/tools.c                                  \
36   gs/categories.h                             \
37   gs/connection.h                             \
38   gs/sequence.h                               \
39   gs/net_driver.c      gs/net_driver.h        \
40   gs/net_driver_fd.c   gs/net_interface_fd.h  \
41   gs/type_driver_rl.c  gs/type_interface_rl.h \
42   gs/type_driver.c     gs/type_driver.h       \
43   gs/message.c         gs/message.h           \
44   gs/type.c            gs/type.h              \
45   gs/parse.c           gs/parse.yy.h             gs/parse.yy.c \
46   gs/vars.c
47
48 gs/parse.yy.c: gs/parse.yy.l
49         flex -o$@ -Pgs_parse_ $^
50
51 COMMON_L=\
52  $(foreach file,\
53   diagnostic formatutil strutil osutil, \
54   $(top_srcdir)/src/nws_portability/build-@host@/obj/$(file).o)
55
56 libgrasutils_a_SOURCES = $(COMMON_S) Tests/gras_dummy.c
57 libgrasutils_a_LIBADD = $(COMMON_L)
58
59
60
61 # RL/gras_rl.c RL/gras_rl.h FIXME
62 libgrasrl_a_SOURCES= $(COMMON_S) Messaging/messaging_rl.c
63 libgrasrl_a_LIBADD= \
64  $(foreach file,\
65   exp_smooth forc median mse_forc protocol \
66   dnsutil fbuff forecast_api last_value run_mean timeouts, \
67   $(top_srcdir)/src/nws_portability/build-@host@/obj/$(file).o) \
68  $(COMMON_L)
69
70         
71 # SG/gras_sg.c SG/gras_sg.h FIXME       
72 libgrassg_a_SOURCES= $(COMMON_S) Messaging/messaging_sg.c
73 libgrassg_a_LIBADD= \
74  $(COMMON_L)
75
76