The server tree of https://code.moenext.com/nanahira/ygopro.git, branch server, commit 52c868ce071ea0f2fcb0cf39bf2fb4151d12b90c, stock: gframe/, premake5.lua, .ci/, LICENSE, and gframe/ygopro.rc + .ico (upstream keeps them in resource/ and copies them in before building). No game assets, no scripts, no ocgcore submodule: the core is ../core. The third-party sources upstream's Windows CI downloads are vendored here at the positions its premake expects, each with its premake fragment from upstream's premake/ folder inside it: lua 5.4.8, sqlite 3.53.3, libevent 2.1.13-stable (tests, samples and autotools helpers left out; the files its Windows prebuild copies into include/ left out), zlib 1.3.2 (contrib and examples left out), xz 5.8.3 (src/liblzma + src/common only), and irrlicht 1.9 from mycard at 20f86d25: include/ plus the source/Irrlicht headers and the 11 .cpp files the server's zip reader project compiles. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
83 lines
2.3 KiB
Makefile
83 lines
2.3 KiB
Makefile
# WATCH OUT! This makefile is a work in progress. -*- makefile -*-
|
|
#
|
|
# I'm not very knowledgeable about MSVC and nmake beyond their most basic
|
|
# aspects. If anything here looks wrong to you, please let me know.
|
|
|
|
# If OPENSSL_DIR is not set, builds without OpenSSL support. If you want
|
|
# OpenSSL support, you can set the OPENSSL_DIR variable to where you
|
|
# installed OpenSSL. This can be done in the environment:
|
|
# set OPENSSL_DIR=c:\openssl
|
|
# Or on the nmake command line:
|
|
# nmake OPENSSL_DIR=C:\openssl -f Makefile.nmake
|
|
# Or by uncommenting the following line here in the makefile...
|
|
|
|
# OPENSSL_DIR=c:\openssl
|
|
|
|
!IFDEF OPENSSL_DIR
|
|
SSL_CFLAGS=/I$(OPENSSL_DIR)\include /DEVENT__HAVE_OPENSSL
|
|
!ELSE
|
|
SSL_CFLAGS=
|
|
!ENDIF
|
|
|
|
# Needed for correctness
|
|
CFLAGS=/IWIN32-Code /IWIN32-Code/nmake /Iinclude /Icompat /DHAVE_CONFIG_H /I. $(SSL_CFLAGS)
|
|
|
|
# For optimization and warnings
|
|
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
|
|
|
|
# XXXX have a debug mode
|
|
|
|
LIBFLAGS=/nologo
|
|
|
|
CORE_OBJS=event.obj buffer.obj bufferevent.obj bufferevent_sock.obj \
|
|
bufferevent_pair.obj listener.obj evmap.obj log.obj evutil.obj \
|
|
strlcpy.obj signal.obj bufferevent_filter.obj evthread.obj \
|
|
bufferevent_ratelim.obj evutil_rand.obj evutil_time.obj
|
|
WIN_OBJS=win32select.obj evthread_win32.obj buffer_iocp.obj \
|
|
event_iocp.obj bufferevent_async.obj
|
|
EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
|
|
|
|
!IFDEF OPENSSL_DIR
|
|
SSL_OBJS=bufferevent_openssl.obj
|
|
SSL_LIBS=libevent_openssl.lib
|
|
!ELSE
|
|
SSL_OBJS=
|
|
SSL_LIBS=
|
|
!ENDIF
|
|
|
|
ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS) $(SSL_OBJS)
|
|
STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib $(SSL_LIBS)
|
|
|
|
|
|
all: static_libs tests
|
|
|
|
static_libs: $(STATIC_LIBS)
|
|
|
|
libevent_core.lib: $(CORE_OBJS) $(WIN_OBJS)
|
|
lib $(LIBFLAGS) $(CORE_OBJS) $(WIN_OBJS) /out:libevent_core.lib
|
|
|
|
libevent_extras.lib: $(EXTRA_OBJS)
|
|
lib $(LIBFLAGS) $(EXTRA_OBJS) /out:libevent_extras.lib
|
|
|
|
libevent.lib: $(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
|
|
lib $(LIBFLAGS) $(CORE_OBJS) $(EXTRA_OBJS) $(WIN_OBJS) /out:libevent.lib
|
|
|
|
libevent_openssl.lib: $(SSL_OBJS)
|
|
lib $(LIBFLAGS) $(SSL_OBJS) /out:libevent_openssl.lib
|
|
|
|
clean:
|
|
del $(ALL_OBJS)
|
|
del $(STATIC_LIBS)
|
|
cd test
|
|
$(MAKE) /F Makefile.nmake clean
|
|
cd ..
|
|
|
|
tests:
|
|
cd test
|
|
!IFDEF OPENSSL_DIR
|
|
$(MAKE) OPENSSL_DIR=$(OPENSSL_DIR) /F Makefile.nmake
|
|
!ELSE
|
|
$(MAKE) /F Makefile.nmake
|
|
!ENDIF
|
|
cd ..
|