-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 781 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 781 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
# Add the names of your .c files from your assignment here.
SRCS = simple_shell.c utils.c
# This line is the name of the program you are building
BIN = simple_shell
# Compiler flags to pass to the system's C compiler while building
# the source files
CFLAGS = -g -Wall -Wextra -pedantic -std=gnu11
# Flags to pass to the linker while linking your program
# You shouldn't need to change this at all.
LDFLAGS = -g
###################################################################
# You shouldn't need to touch anything below this line... #
###################################################################
OBJS = $(SRCS:.c=.o)
all: $(BIN)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)
$(BIN): $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)
clean:
-rm -f $(OBJS)
-rm -f $(BIN)