diff options
| author | Adam Malczewski <[email protected]> | 2026-04-18 18:38:01 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-18 18:38:01 +0900 |
| commit | 86464b6bd09567005d6517fba9e170f4f3550c90 (patch) | |
| tree | 3c930d631aa19e2aaec7a1997f9656e2bc7b349b /Makefile | |
| parent | 52afce7fa5271d424a53ffc600c498f5ca1273a0 (diff) | |
| download | study-player-86464b6bd09567005d6517fba9e170f4f3550c90.tar.gz study-player-86464b6bd09567005d6517fba9e170f4f3550c90.zip | |
final touches
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -12,13 +12,14 @@ RAYLIB_LIB := $(BUILD_DIR)/libraylib.a # Source files APP_SRC := $(SRC_DIR)/main.c +FONT_HEADER := $(BUILD_DIR)/font_data.h CC := x86_64-w64-mingw32-gcc APP_OUT := $(BUILD_DIR)/study-player.exe -LDFLAGS := -lgdi32 -lwinmm -lcomdlg32 -lole32 +LDFLAGS := -mwindows -lgdi32 -lwinmm -lcomdlg32 -lole32 DEFINES := -DPLATFORM_DESKTOP -D_GLFW_WIN32 -CFLAGS_COMMON := -std=c99 -O2 -I$(RAYLIB_SRC) -I$(RAYLIB_SRC)/external/glfw/include +CFLAGS_COMMON := -std=c99 -O2 -I$(RAYLIB_SRC) -I$(RAYLIB_SRC)/external/glfw/include -I$(BUILD_DIR) CFLAGS := $(CFLAGS_COMMON) -Wall -Wextra CFLAGS_RAYLIB := $(CFLAGS_COMMON) -w @@ -32,8 +33,8 @@ RAYLIB_OBJS := $(patsubst $(RAYLIB_SRC)/%.c,$(BUILD_DIR)/raylib/%.o,$(RAYLIB_SRC all: $(APP_OUT) -# Build application -$(APP_OUT): $(APP_SRC) $(RAYLIB_LIB) | $(BUILD_DIR) +# Build application (font_data.h is generated by bin/build before invoking make) +$(APP_OUT): $(APP_SRC) $(FONT_HEADER) $(RAYLIB_LIB) | $(BUILD_DIR) $(CC) $(CFLAGS) $(DEFINES) -o $@ $< -L$(BUILD_DIR) -lraylib $(LDFLAGS) # Archive raylib objects into static library |
