This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
41 lines (35 loc) · 5.8 KB
/
Makefile.am
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
40
41
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=Ari
CommonFlags=-I$(top_srcdir)/inc -O2 -Wall -Wno-unknown-pragmas -Wno-enum-compare -Wno-deprecated-declarations -fmacro-prefix-map=$(top_srcdir)/src/=
AM_CFLAGS=-std=gnu17
AM_CXXFLAGS=$(CommonFlags)
AM_CFLAGS+=$(CommonFlags)
Ari_LDFLAGS=-L$(top_srcdir)/libs
Ari_LDADD=-luv -lssl -lcrypto -lz
if WINDOWS
AM_CXXFLAGS+=-std=gnu++23
Ari_LDADD+=-lws2_32 -lWebView2Loader.dll -lole32 -lshell32 -lshlwapi -luser32 -lcrypt32
Ari_LDFLAGS+=-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread
endif
if LINUX
AM_CXXFLAGS+=$(GTK_CFLAGS) $(WEBKIT_CFLAGS) -std=gnu++23
AM_CFLAGS+=$(GTK_CFLAGS) $(WEBKIT_CFLAGS)
Ari_LDFLAGS+=$(GTK_LDFLAGS) $(WEBKIT_LDFLAGS)
Ari_LDADD+=$(GTK_LIBS) $(WEBKIT_LIBS)
endif
if OSX
AM_CXXFLAGS+=-std=c++2b
Ari_LDFLAGS+=-framework Webkit
if ARM
# Flags for macOS ARM
AM_CXXFLAGS+=-I/opt/homebrew/include
AM_CFLAGS+=-I/opt/homebrew/include
Ari_LDFLAGS+=-L/opt/homebrew/lib
else
# Flags for macOS x86
AM_CXXFLAGS+=-I/usr/local/include
AM_CFLAGS+=-I/usr/local/include
Ari_LDFLAGS+=-L/usr/local/lib
endif
endif
Ari_SOURCES=$(top_srcdir)/build/config.h $(top_srcdir)/inc/ach/core/auth/LocalAuth.hh $(top_srcdir)/inc/ach/core/auth/MSAuth.hh $(top_srcdir)/inc/ach/core/auth/YggAuth.hh $(top_srcdir)/inc/ach/core/auto/AutoForge.hh $(top_srcdir)/inc/ach/core/auto/AutoLoader.hh $(top_srcdir)/inc/ach/core/network/Download.hh $(top_srcdir)/inc/ach/core/network/Mirror.hh $(top_srcdir)/inc/ach/core/op/AssetsInstall.hh $(top_srcdir)/inc/ach/core/op/Authenticate.hh $(top_srcdir)/inc/ach/core/op/AutoProfile.hh $(top_srcdir)/inc/ach/core/op/Bootstrap.hh $(top_srcdir)/inc/ach/core/op/Flipper.hh $(top_srcdir)/inc/ach/core/op/Flow.hh $(top_srcdir)/inc/ach/core/op/GameLaunch.hh $(top_srcdir)/inc/ach/core/op/JVMCheck.hh $(top_srcdir)/inc/ach/core/op/LibrariesInstall.hh $(top_srcdir)/inc/ach/core/op/NativesCheck.hh $(top_srcdir)/inc/ach/core/op/ProfileExt.hh $(top_srcdir)/inc/ach/core/op/ProfileInstall.hh $(top_srcdir)/inc/ach/core/platform/Finder.hh $(top_srcdir)/inc/ach/core/platform/OSType.hh $(top_srcdir)/inc/ach/core/platform/Tools.hh $(top_srcdir)/inc/ach/core/profile/AccountProfile.hh $(top_srcdir)/inc/ach/core/profile/GameProfile.hh $(top_srcdir)/inc/ach/core/profile/JVMProfile.hh $(top_srcdir)/inc/ach/core/profile/LaunchProfile.hh $(top_srcdir)/inc/ach/core/profile/Transform.hh $(top_srcdir)/inc/ach/core/runtime/GameInstance.hh $(top_srcdir)/inc/ach/drivers/aria2/Aria2Driver.hh $(top_srcdir)/inc/ach/extra/env/AutoJVM.hh $(top_srcdir)/inc/ach/extra/mod/Modburin.hh $(top_srcdir)/inc/ach/extra/mod/provider/Modrinth.hh $(top_srcdir)/inc/ach/sys/Init.hh $(top_srcdir)/inc/ach/sys/Schedule.hh $(top_srcdir)/inc/ach/sys/Storage.hh $(top_srcdir)/inc/ach/uic/Brain.hh $(top_srcdir)/inc/ach/uic/Protocol.hh $(top_srcdir)/inc/ach/uic/SysCall.hh $(top_srcdir)/inc/ach/uic/syscalls/Account.hh $(top_srcdir)/inc/ach/uic/syscalls/App.hh $(top_srcdir)/inc/ach/uic/syscalls/Game.hh $(top_srcdir)/inc/ach/uic/syscalls/JVM.hh $(top_srcdir)/inc/ach/uic/syscalls/Mod.hh $(top_srcdir)/inc/ach/uic/UIFrame.hh $(top_srcdir)/inc/ach/uic/UserData.hh $(top_srcdir)/inc/ach/util/Commons.hh $(top_srcdir)/inc/ach/util/Proc.hh $(top_srcdir)/inc/base64.hh $(top_srcdir)/inc/cJSON.h $(top_srcdir)/inc/httplib.h $(top_srcdir)/inc/log.hh $(top_srcdir)/inc/lurl.hpp $(top_srcdir)/inc/miniz.h $(top_srcdir)/inc/uuid.h $(top_srcdir)/inc/uv/aix.h $(top_srcdir)/inc/uv/bsd.h $(top_srcdir)/inc/uv/darwin.h $(top_srcdir)/inc/uv/errno.h $(top_srcdir)/inc/uv/linux.h $(top_srcdir)/inc/uv/os390.h $(top_srcdir)/inc/uv/posix.h $(top_srcdir)/inc/uv/stdint-msvc2008.h $(top_srcdir)/inc/uv/sunos.h $(top_srcdir)/inc/uv/threadpool.h $(top_srcdir)/inc/uv/tree.h $(top_srcdir)/inc/uv/unix.h $(top_srcdir)/inc/uv/version.h $(top_srcdir)/inc/uv/win.h $(top_srcdir)/inc/uv.h $(top_srcdir)/inc/webview.h $(top_srcdir)/inc/WebView2.h $(top_srcdir)/inc/zip.h $(top_srcdir)/src/core/auth/LocalAuth.cc $(top_srcdir)/src/core/auth/MSAuth.cc $(top_srcdir)/src/core/auth/YggAuth.cc $(top_srcdir)/src/core/auto/AutoForge.cc $(top_srcdir)/src/core/auto/AutoLoader.cc $(top_srcdir)/src/core/network/Download.cc $(top_srcdir)/src/core/network/Mirror.cc $(top_srcdir)/src/core/op/AssetsInstall.cc $(top_srcdir)/src/core/op/Authenticate.cc $(top_srcdir)/src/core/op/AutoProfile.cc $(top_srcdir)/src/core/op/Bootstrap.cc $(top_srcdir)/src/core/op/Flipper.cc $(top_srcdir)/src/core/op/Flow.cc $(top_srcdir)/src/core/op/GameLaunch.cc $(top_srcdir)/src/core/op/JVMCheck.cc $(top_srcdir)/src/core/op/LibrariesInstall.cc $(top_srcdir)/src/core/op/NativesCheck.cc $(top_srcdir)/src/core/op/ProfileExt.cc $(top_srcdir)/src/core/op/ProfileInstall.cc $(top_srcdir)/src/core/platform/Finder.cc $(top_srcdir)/src/core/platform/OSType.cc $(top_srcdir)/src/core/platform/Tools.cc $(top_srcdir)/src/core/profile/AccountProfile.cc $(top_srcdir)/src/core/profile/GameProfile.cc $(top_srcdir)/src/core/profile/JVMProfile.cc $(top_srcdir)/src/core/profile/LaunchProfile.cc $(top_srcdir)/src/core/profile/Transform.cc $(top_srcdir)/src/core/runtime/GameInstance.cc $(top_srcdir)/src/drivers/aria2/Aria2Driver.cc $(top_srcdir)/src/extra/env/AutoJVM.cc $(top_srcdir)/src/extra/mod/Modburin.cc $(top_srcdir)/src/extra/mod/provider/Modrinth.cc $(top_srcdir)/src/libimpl/base64.cc $(top_srcdir)/src/libimpl/cJSON.c $(top_srcdir)/src/libimpl/httplib.cc $(top_srcdir)/src/libimpl/lurl.cc $(top_srcdir)/src/libimpl/zip.c $(top_srcdir)/src/Main.cc $(top_srcdir)/src/sys/Init.cc $(top_srcdir)/src/sys/Schedule.cc $(top_srcdir)/src/sys/Storage.cc $(top_srcdir)/src/uic/Brain.cc $(top_srcdir)/src/uic/Protocol.cc $(top_srcdir)/src/uic/SysCall.cc $(top_srcdir)/src/uic/syscalls/Account.cc $(top_srcdir)/src/uic/syscalls/App.cc $(top_srcdir)/src/uic/syscalls/Game.cc $(top_srcdir)/src/uic/syscalls/JVM.cc $(top_srcdir)/src/uic/syscalls/Mod.cc $(top_srcdir)/src/uic/UIFrame.cc $(top_srcdir)/src/uic/UserData.cc $(top_srcdir)/src/util/Commons.cc $(top_srcdir)/src/util/Proc.cc