File: Makefile

package info (click to toggle)
sumaclust 1.0.36%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 444 kB
  • sloc: ansic: 2,191; sh: 111; makefile: 76
file content (51 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PREFIX=/usr

CFLAGS=-I$(PREFIX)/include

EXEC = sumaclust

SUMACLUST_SRC = sumaclust.c \
                mtcompare_sumaclust.c

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

SRCS = $(SUMACLUST_SRC)

LIB = -lsuma -lm #-ll

include ./global.mk

all: $(EXEC)


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

# executable compilation and link

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

sumaclust: $(SUMACLUST_OBJ) $(LIBSUMA)
	$(CC) $(LDFLAGS) -o $@ $(LFLAGS) $(SUMACLUST_OBJ) $(LIB) $(LIBSUMAPATH)
	
########
#
# project management
#
########

clean:
	rm -f $(SUMACLUST_OBJ)	
	rm -f $(EXEC)

install: all
	install -d $(DESTDIR)$(PREFIX)/bin/
	install -m 755 $(EXEC) $(DESTDIR)$(PREFIX)/bin/