-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
32 lines (20 loc) · 853 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
CC=g++
MAKEFLAGS := --jobs=$(shell nproc)
# TODO: Add more warning flags like -Wall and -Wextra
CFLAGS= -Wno-int-to-pointer-cast -O2 -g -m32 `pkg-config --cflags gtk+-3.0`
LDFLAGS=-L/usr/X11/lib -lX11 -lXext -lXfixes -lstdc++ -g -m32 `pkg-config --libs gtk+-3.0`
OBJ_FILES=main.cpp.o hacks/bhop.cpp.o hacks/playerInfo.cpp.o GUI/GUI.cpp.o hacks/aimbot.cpp.o hacks/ESP.cpp.o hacks/draw.cpp.o hacks/crosshair.cpp.o hacks/fovCircle.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 $@ $<