From 10351217c4b8beef0006fe7b2eeb22843e506a44 Mon Sep 17 00:00:00 2001 From: "U-INFINEON\\jahnst" Date: Sat, 11 Feb 2023 02:21:11 +0100 Subject: [PATCH] Added build system for Windows msys2 --- Makefile | 1 + Makefile.rules.windows | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Makefile.rules.windows diff --git a/Makefile b/Makefile index 9aac749..d268f5b 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ help: echo "set up configuration" echo " make configlinux to generate the linix build" echo " make configcross to generate the windows build using cross tools." + echo " make configwindows to generate the windows build using msys2." echo " " echo " make checkdumpfile to create a test tool for videodumps." diff --git a/Makefile.rules.windows b/Makefile.rules.windows new file mode 100644 index 0000000..53394b9 --- /dev/null +++ b/Makefile.rules.windows @@ -0,0 +1,12 @@ + +include Makefile.config + +TARGET = $(APP).exe +CPP = g++ +CPPFLAGS = -ggdb -Wall -O0 `pkg-config --cflags gtk+-3.0 gmodule-export-2.0` -Wl,--export-dynamic -DBUILD_WINDOWS=1 -Wdeprecated +INCLUDES = +LDFLAGS = -lws2_32 -ljpeg +LIBS = `pkg-config --libs gtk+-3.0 gmodule-export-2.0` -L/usr/lib -mwindows + +OBJECTS := $(OBJECTS) windows.oo +