forked from RubberizedDuck/holbertonschool-simple_shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 590 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 590 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
# Compiling for the hsh simple shell requirements are as follows;
# gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
CC=gcc
CFLAGS=-Wall -Werror -Wextra -pedantic -std=gnu89 -g
BETTY=betty
VALGRIND=valgrind
VFLAGS= --leak-check=full --show-leak-kinds=all ./hsh
TARGET=hsh
SRC= simple_shell.c \
string_funcs.c \
linklist_funcs.c \
fork_exec.c \
_getpath.c \
_stat.c \
assess_input.c \
builtin_funcs.c \
_getenv.c
SRC2= *.c
all: 1 2
1:
$(CC) $(CFLAGS) $(SRC) -o $(TARGET)
2:
$(CC) $(CFLAGS) $(SRC2) -o $(TARGET)
betty:
$(BETTY) $(SRC2)
val:
$(VALGRIND) $(VFLAGS)