-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 873 Bytes
/
Makefile
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
CC = g++
CFLAGS = -Wall -g
TARGET = aurebesh
# Source files
SRCS = src/main.cpp \
src/execution.cpp \
src/history/commandHistory.cpp \
src/prompt/prompt.cpp \
src/IO/input.cpp \
src/IO/tabCommandHandler.cpp \
src/IO/tabCdHandler.cpp \
src/IO/pathHelper.cpp \
src/IO/parse.cpp \
src/IO/commandColorWrap.cpp \
src/builtin/builtin.cpp \
src/builtin/shellCd.cpp \
src/builtin/shellExit.cpp \
src/builtin/shellHelp.cpp \
src/builtin/shellHistory.cpp \
src/builtin/shellLs.cpp \
src/builtin/shellWrite.cpp \
src/builtin/shellGrep.cpp \
src/errorLog/errorLog.cpp
# Object files
OBJS = $(SRCS:.cpp=.o)
# Build the target executable
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
# Compile .cpp files into .o files
%.o: %.cpp
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)