Makefile 458 Bytes
Newer Older
1
2
objects := ini.o read_ini.o results.o
DISTRI_LOC = $(TOP)/malleability/distribution_methods/block_distribution.h
3
4
CC := gcc
MCC := mpicc
5
CFLAGS := -Wall -Wextra
6

7
all: $(objects)
8

9
10
11
12
13
14
15
16
17
18
19
20
ini.o: ini.c ini.h
	echo $(BUILDDIR)
	$(CC) $(CFLAGS) -c -o $(BUILDDIR)/$@ $<

read_ini.o: read_ini.c read_ini.h ini.h $(DISTRI_LOC)
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@ $<

results.o: results.c results.h
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@ $<

#$@ --> Objeto
#$< --> Source