mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Add Windows (MSYS2/MinGW) build support and docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
e8a4d2a45f
commit
35695f97d0
2 changed files with 38 additions and 2 deletions
10
Makefile
10
Makefile
|
|
@ -16,7 +16,15 @@ GTK_LIBS := $(shell $(PKG_CONFIG) --libs gtk4)
|
|||
|
||||
CFLAGS = -Wall -Wextra -Wno-deprecated-declarations $(GTK_CFLAGS)
|
||||
LIBS = $(GTK_LIBS) -lm
|
||||
|
||||
# Windows (MSYS2 / MinGW): .exe suffix and no console window for the GUI.
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TARGET = maturita.exe
|
||||
LIBS += -mwindows
|
||||
else
|
||||
TARGET = maturita
|
||||
endif
|
||||
|
||||
SRC = maturita.c
|
||||
|
||||
all: $(TARGET)
|
||||
|
|
@ -25,7 +33,7 @@ $(TARGET): $(SRC)
|
|||
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
rm -f $(TARGET) maturita.exe
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue