-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (20 loc) · 849 Bytes
/
Makefile
File metadata and controls
32 lines (20 loc) · 849 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
CC=g++
MAKEFLAGS := --jobs=$(shell nproc)
# TODO: Add more warning flags like -Wall and -Wextra
CFLAGS= -Wno-int-to-pointer-cast -O3 `pkg-config --cflags Qt6Widgets` -fPIC -g
LDFLAGS=-L/usr/X11/lib -lX11 -lXext -lXfixes -lstdc++ `pkg-config --libs Qt6Widgets` -g
OBJ_FILES=main.cpp.o hacks/player_info.cpp.o hacks/draw.cpp.o hacks/esp.cpp.o gui/gui.cpp.o hacks/bhop.cpp.o hacks/aimbot.cpp.o hacks/spin.cpp.o hacks/crosshair.cpp.o
OBJS=$(addprefix obj/, $(OBJ_FILES))
BIN=cs-source-hack
.PHONY: all clean
#-------------------------------------------------------------------------------
all: $(BIN)
clean:
rm -f $(OBJS)
rm -f $(BIN)
#-------------------------------------------------------------------------------
$(BIN): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
obj/%.cpp.o: %.cpp
@mkdir -p $(dir $@)
$(CC) $(CFLAGS) -c -o $@ $<