anders_tale_room_editor

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | LICENSE

commit 70b84b8b1a9bbfed8b1ccb895f9f8ca94334d323
parent b323061e2a2e46724559ec1ce025484938cafe22
Author: Samdal <samdal@protonmail.com>
Date:   Tue, 14 Sep 2021 22:29:30 +0200

fixed console opening on windows

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,12 +1,12 @@ CFLAGS = -std=gnu99 -O0 -g3 -pthread - LDFLAGS = -ldl -lX11 -lXi -lm +name = bin/anders_tale_room_editor build: src/main.c - gcc -o bin/app $(CFLAGS) src/*.c $(LDFLAGS) + gcc -o $(name) $(CFLAGS) src/*.c $(LDFLAGS) linux-win: src/main.c - x86_64-w64-mingw32-gcc -o bin/app -O3 -pthread src/*.c -static -lkernel32 -luser32 -lshell32 -lgdi32 -lwinmm -lopengl32 -lcomdlg32 + x86_64-w64-mingw32-gcc -o $(name) -O3 -mwindows -pthread src/*.c -static -lkernel32 -luser32 -lshell32 -lgdi32 -lwinmm -lopengl32 -lcomdlg32 .PHONY: run clean