Makefile 849 Bytes
Newer Older
1
2
3
objects1 := computing_func comunication_func linear_reg
objects2 := process_stage
objects3 := Main
4
5
6
7
8
9

#Pasar nombre a level -- Los objects/headers/source añadir sufijo

DISTRI_LOC = $(TOP)/malleability/distribution_methods/block_distribution.h
MALLEABILITY_DEPENDS = $(TOP)/malleability/CommDist.h $(TOP)/malleability/malleabilityStates.h $(TOP)/malleability/malleabilityManager.h
DEPENDS := Main_datatypes.h
10
11
CC := gcc
MCC := mpicc
12
CFLAGS := -Wall -Wextra
13
14
15

all: $(objects1) $(objects2) $(objects3)

16
$(objects1): %: %.c %.h $(DEPENDS)
17
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@.o $<
18
$(objects2): %: %.c %.h $(objects1).h $(DEPENDS) $(DISTRI_LOC)
19
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@.o $<
20
$(objects3): %: %.c $(objects2).h $(DEPENDS) $(TOP)/IOcodes/read_ini.h $(TOP)/IOcodes/results.h $(MALLEABILITY_DEPENDS)
21
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@.o $<
22