-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (44 loc) · 699 Bytes
/
Makefile
File metadata and controls
49 lines (44 loc) · 699 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
45
46
47
48
49
CC=gcc
CFLAGS=-Wall -Werror -Wextra -pedantic
LIBS=
EXENAME=hsh
CFILES=\
aliasA.c\
aliasB.c\
buildarginv.c\
builtinA.c\
builtinB.c\
cd.c\
environA.c\
environB.c\
executeA.c\
executeB.c\
file_io.c\
free.c\
getline.c\
helpA.c\
helpB.c\
history.c\
memmalloc.c\
parseA.c\
parseB.c\
path.c\
pipeline.c\
ptree.c\
stdlib_funcs.c\
stringsA.c\
stringsB.c\
stringsC.c\
tokenize.c\
tokenizer.c\
worker.c\
write.c
GLOBAL_HEADERS=\
header.h
# Make goals
all: $(GLOBAL_HEADERS) $(CFILES) main.c
$(CC) $(CFLAGS) $(CFILES) main.c -o $(EXENAME) $(LIBS)
debug: $(GLOBAL_HEADERS) $(CFILES) main.c
$(CC) $(CFLAGS) $(CFILES) main.c -o $(EXENAME) $(LIBS) -g
clean:
rm -f $(EXENAME)