Makefile 326 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
objects1 := ini
objects2 := results read_ini
CC := gcc
MCC := mpicc
CFLAGS := -Wall

all: $(objects1) $(objects2)

$(objects1): %: %.c %.h
	$(CC) $(CFLAGS) -c -o $(BUILDDIR)/$@.o $<
$(objects2): %: %.c %.h $(objects1).h $(TOP)/malleability/distribution_methods/block_distribution.h
	$(MCC) $(CFLAGS) -c -o $(BUILDDIR)/$@.o $<