Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
document last changes
[simgrid.git] / src / nws_portability / Forecast / Makefile
1 #
2 # Makefile for Forecaster
3
4 # include common variables
5 include ../Makedefs
6
7 # these are the targets
8 LIBRARY = $(buildlibdir)/libNwsForecast.a
9
10 # objects we are creating here
11 OBJS    =       $(buildobjdir)/exp_smooth.o \
12                 $(buildobjdir)/fbuff.o \
13                 $(buildobjdir)/forc.o \
14                 $(buildobjdir)/forecast_api.o \
15                 $(buildobjdir)/last_value.o \
16                 $(buildobjdir)/median.o \
17                 $(buildobjdir)/mse_forc.o \
18                 $(buildobjdir)/run_mean.o
19
20 .PHONY: all clean dist
21
22 all: $(LIBRARY) 
23
24 clean:
25         @$(RM) -f $(OBJS) 
26
27 dist:
28         @$(INSTALL) -d $(DIST_ROOT)/Forecast
29         @$(CP) Makefile *.c $(DIST_ROOT)/Forecast
30
31 $(LIBRARY): $(OBJS)
32         $(AR) $(ARFLAGS) $@ $(OBJS)
33         $(RANLIB) $@
34
35 #pure:
36 #       $(MAKE) LD="$(PURIFY) $(LD)"
37
38
39 # Compilation rules for C.
40 $(buildobjdir)/%.o : %.c ../Include/config_portability.h ../Include/%.h ../Include/forc.h
41         $(CC) $(INCLUDES) $(CFLAGS) -g -c $< -o $@
42