Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Add amauth EMU
Browse files Browse the repository at this point in the history
  • Loading branch information
BroGamer4256 committed Sep 15, 2022
1 parent c894ebe commit 64d2f02
Show file tree
Hide file tree
Showing 6 changed files with 388 additions and 286 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ${OUT}: dirs ${DEPS} ${OBJ}
fmt:
@cd src && clang-format -i *.h *.c -style=file
@cd patches/8.18 && clang-format -i *.c -style=file
@cd patches/amauth && clang-format -i *.c -style=file

.PHONY: clean
clean:
Expand All @@ -50,6 +51,7 @@ clean:
.PHONY: patches
patches:
make -C patches/8.18
make -C patches/amauth

.PHONY: dist-no-7z
dist-no-7z: options ${OUT} patches
Expand Down
10 changes: 5 additions & 5 deletions patches/what_the_fuck/Makefile → patches/amauth/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
OUT = what_the_fuck
OUT = amauth
CXX := x86_64-w64-mingw32-g++
TARGET := x86_64-pc-windows-gnu
SRC = dllmain.cpp
OBJ = ${addprefix ../../${TARGET}/patches/what_the_fuck/,${SRC:.cpp=.o}}
OBJ = ${addprefix ../../${TARGET}/patches/amauth/,${SRC:.cpp=.o}}
EXTERN_SRC = src/helpers.c tomlc99/toml.c minhook/src/buffer.c minhook/src/hook.c minhook/src/trampoline.c minhook/src/hde/hde32.c minhook/src/hde/hde64.c
EXTERN_OBJ = ${addprefix ../../${TARGET}/,${EXTERN_SRC:.c=.o}}
CXXFLAGS = -std=c++11 -I../../src -I../../minhook/include -I../../tomlc99 -Wall -Ofast -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=_WIN32_WINNT_WIN7
LDFLAGS := -shared -static -static-libgcc -s
LIBS := -lmingw32 -luuid -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lsetupapi -lversion -pthread
LIBS := -lmingw32 -luuid -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lsetupapi -lversion -lws2_32 -pthread

all: options ${OUT}

.PHONY: dirs
dirs:
@mkdir -p ../../${TARGET}/patches/what_the_fuck
@mkdir -p ../../${TARGET}/patches/amauth

.PHONY: options
options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CXX = ${CXX}"

../../${TARGET}/patches/what_the_fuck/%.o: %.cpp
../../${TARGET}/patches/amauth/%.o: %.cpp
@echo BUILD $@
@${CXX} -c ${CXXFLAGS} $< -o $@

Expand Down
Loading

0 comments on commit 64d2f02

Please sign in to comment.