-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (25 loc) · 925 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
CFLAGS = -O3 --std=c++20
LDFLAGS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
COMP = g++
OBJS = raygui.o \
Encoder.o \
OTCustom.so \
Main.o
COREHEADERS = Source/Core.hpp \
Encoder.o \
Main.o
all: OTENGINE
OTENGINE: $(OBJS)
Main.o: Source/Main.cpp Source/*.hpp Source/Parasite/*.hpp
$(COMP) $(CFLAGS) -c Source/Main.cpp $(LDFLAGS)
# Compiles .so for Custom Engine Behavior
OTCustom.so: Source/Custom/OTCustom.cpp
$(COMP) $(CFLAGS) -c Source/Custom/OTCustom.cpp $(LDFLAGS)
$(COMP) $(CFLAGS) -shared OTCustom.o -o Custom.so
rm OTCustom.o
Encoder.o: Source/Encoder/Encoder.cpp
$(COMP) $(CFLAGS) -c Source/Encoder/Encoder.cpp $(LDFLAGS)
raygui.o: Source/raygui/raygui.c
$(COMP) $(CFLAGS) -c Source/raygui/raygui.c -shared -DRAYGUI_IMPLEMENTATION -DBUILD_LIBTYPE_SHARED -static-libgcc -lopengl32 -lgdi32 -lwinmm
OTENGINE:
$(COMP) *.o -o OmegaTech $(CFLAGS) $(LDFLAGS) -L. -l:Custom.so -Wl,-rpath=.