Makefile 619 Bytes
Newer Older
1
EXEC = sumaclust
2

3 4
SUMACLUST_SRC = sumaclust.c \
                mtcompare_sumaclust.c
5

6
SUMACLUST_OBJ = $(patsubst %.c,%.o,$(SUMACLUST_SRC))
7

8
SRCS = $(SUMACLUST_SRC)
9

10
LIB = -lsuma -lm #-ll
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

include ./global.mk

all: $(EXEC)


########
#
# sumaclust compilation
#
########

# executable compilation and link

ifeq ($(CC),gcc)
        LFLAGS = -fopenmp 
else
        LFLAGS = 
endif

31 32
sumaclust: $(SUMACLUST_OBJ) $(LIBSUMA)
	$(CC) $(LDFLAGS) -o $@ $(LFLAGS) $(SUMACLUST_OBJ) $(LIB) $(LIBSUMAPATH)
33 34 35 36 37 38 39 40
	
########
#
# project management
#
########

clean:
41
	rm -f $(SUMACLUST_OBJ)	
42
	rm -f $(EXEC)
43 44
	$(MAKE) -C ./sumalibs clean