Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv gs/ DataDesc/
[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         DataDesc/gs_private.h     \
9         DataDesc/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   DataDesc/datadesc.c                               \
35   DataDesc/tools.c                                  \
36   DataDesc/categories.h                             \
37   DataDesc/connection.h                             \
38   DataDesc/sequence.h                               \
39   DataDesc/net_driver.c      DataDesc/net_driver.h        \
40   DataDesc/net_driver_fd.c   DataDesc/net_interface_fd.h  \
41   DataDesc/type_driver_rl.c  DataDesc/type_interface_rl.h \
42   DataDesc/type_driver.c     DataDesc/type_driver.h       \
43   DataDesc/message.c         DataDesc/message.h           \
44   DataDesc/type.c            DataDesc/type.h              \
45   DataDesc/parse.c           DataDesc/parse.yy.h             DataDesc/parse.yy.c \
46   DataDesc/vars.c
47
48 DataDesc/parse.yy.c: DataDesc/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