-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (26 loc) · 884 Bytes
/
Makefile
File metadata and controls
49 lines (26 loc) · 884 Bytes
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
# Master Makefile for Sequence Utilities for Genome analysis
# Type make to build
include make.inc
O = o
SRC_DIR = ./
LIBRARY_DIR = -L./
INCLUDE = -I.
CFLAGS = -g # compiler switches to be applied to every module
OPTIM_SPEED = -O3 # switches that give speed priority over size
OPTIM_SIZE = -O1 # switches that give size priority over speed
OPTIONS = $(CFLAGS) $(INCLUDE)
ARCH = ar
ARCHFLAGS= cr
RAN_LIB = libranlib.a
all: sim_read_hash
GENERATOR = \
ranlib.o \
com.o \
linpack.o
$(RAN_LIB) : $(GENERATOR)
$(ARCH) $(ARCHFLAGS) $(RAN_LIB) $(GENERATOR)
ranlib $(RAN_LIB)
sim_read_hash: $(RAN_LIB)
upcxx -o sim_read_hash -g sim_read_hash.cpp -L. -lranlib
%.o: %.c
$(CC) $(OPTIONS) $(OPTIM_SPEED) -c $<