-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
67 lines (50 loc) · 1.7 KB
/
makefile
File metadata and controls
67 lines (50 loc) · 1.7 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
##
## This file builds assignment 2
##
##
## Some macros (makefile 'variables') are defined by default
## by make(1). The ones relevant to C compiling are:
## CC : the name of the compiler (defaults to system compiler)
## CFLAGS : the flags (options) to pass to the compiler
##
## There are similar macros for other languages, for example C++ uses
## CXX : the name of the c++ compiler (defaults to system compiler)
## CXXFLAGS : the flags (options) to pass to the c++ compiler
## explicitly add debugger support to each file compiled,
## and turn on all warnings. If your compiler is surprised by your
## code, you should be too.
CFLAGS = -g -Wall
## uncomment/change this next line if you need to use a non-default compiler
#CC = cc
##
## We can define variables for values we will use repeatedly below
##
## define the executables we want to build
LOEXE = llloadonly
HOEXE = llheadonly
HTEXE = llheadtail
ADEXE = arraydouble
## Define the set of object files we need to build each executable.
## If you write more files, be sure to add them in here
LOOBJS = llloadonly_main.o fasta_read.o
HOOBJS = llheadonly_main.o
HTOBJS = llheadtail_main.o
ADOBJS = arraydouble_main.o
##
## TARGETS: below here we describe the target dependencies and rules
##
all: $(LOEXE) $(HOEXE) $(HTEXE) $(ADEXE)
$(HOEXE): $(HOOBJS)
$(CC) $(CFLAGS) -o $(HOEXE) $(HOOBJS)
$(LOEXE): $(LOOBJS)
$(CC) $(CFLAGS) -o $(LOEXE) $(LOOBJS)
$(HTEXE): $(HTOBJS)
$(CC) $(CFLAGS) -o $(HTEXE) $(HTOBJS)
$(ADEXE): $(ADOBJS)
$(CC) $(CFLAGS) -o $(ADEXE) $(ADOBJS)
## convenience target to remove the results of a build
clean :
- rm -f $(LOOBJS) $(LOEXE)
- rm -f $(HOOBJS) $(HOEXE)
- rm -f $(HTOBJS) $(HTEXE)
- rm -f $(ADOBJS) $(ADEXE)