File: global.mk

package info (click to toggle)
sumaclust 1.0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 632 kB
  • ctags: 705
  • sloc: ansic: 4,257; lex: 174; makefile: 95
file content (45 lines) | stat: -rw-r--r-- 800 bytes parent folder | download | duplicates (4)
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

LIBFASTAPATH = -L./sumalibs/libfasta
LIBLCSPATH   = -L./sumalibs/liblcs
LIBFILEPATH  = -L./sumalibs/libfile
LIBUTILSPATH = -L./sumalibs/libutils

LIBFASTA = ./sumalibs/libfasta/libfasta.a
LIBLCS   = ./sumalibs/liblcs/liblcs.a
LIBFILE  = ./sumalibs/libfile/libfile.a
LIBUTILS = ./sumalibs/libutils/libutils.a

CC=gcc
LDFLAGS:=$(LDFLAGS)


ifeq ($(CC),gcc)
        CFLAGS = -O3 -s -DOMP_SUPPORT -fopenmp -w
else
        CFLAGS = -O3 -w
endif


default: all

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $< $(LIB)


########
#
# libraries compilation
#
########

./sumalibs/libfasta/libfasta.a:
	$(MAKE) -C ./sumalibs/libfasta

./sumalibs/liblcs/liblcs.a:
	$(MAKE) -C ./sumalibs/liblcs

./sumalibs/libfile/libfile.a:
	$(MAKE) -C ./sumalibs/libfile

./sumalibs/libutils/libutils.a:
	$(MAKE) -C ./sumalibs/libutils