From c2a2445897af17adb56a32dcf111312763a575d4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 2 Jul 2018 01:06:39 +0200 Subject: initial commit Signed-off-by: Toni Uhlig --- csgo_wh/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 csgo_wh/Makefile (limited to 'csgo_wh/Makefile') diff --git a/csgo_wh/Makefile b/csgo_wh/Makefile new file mode 100644 index 0000000..4713e60 --- /dev/null +++ b/csgo_wh/Makefile @@ -0,0 +1,26 @@ +CC = i686-w64-mingw32-gcc +CXX = i686-w64-mingw32-g++ +CFLAGS := -Iinclude -Os -s -Wall -fvisibility=hidden -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations -Wl,--gc-sections -m32 -static -static-libgcc -static-libstdc++ +LDFLAGS := + +TARGETS := csgo_wh + +CSGOWH_SRC := D9DW.cpp D9DW_Rectangle.cpp D9DW_Text.cpp DLLMain.cpp Game.cpp Hook.cpp + + +all: $(TARGETS) + +%.o: %.cpp + @echo 'Building file: $<' + @echo 'Invoking: GCC C++ Compiler' + $(CXX) $(CFLAGS) -D_GNU_SOURCE=1 -DPSAPI_VERSION=1 -std=c++11 $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o $@ $< + @echo 'Finished building: $<' + @echo ' ' + + +csgo_wh: $(patsubst %.cpp,src/%.o,$(CSGOWH_SRC)) + @echo 'Building target: $@' + @echo 'Invoking: GCC C Linker' + $(CXX) $(CFLAGS) $(LDFLAGS) -shared -o $@.dll $^ -lpsapi -luser32 -ld3d9 -ld3dx9 + @echo 'Finished building target: $@' + @echo ' ' -- cgit v1.2.3