built new executable using the windows subsystem

- use the raylua_r to build executables without the console window
This commit is contained in:
Sebastian Neusser 2022-03-18 12:54:42 +01:00
parent 6f4cc3bba7
commit 6a8065fcdb
2 changed files with 8 additions and 3 deletions

3
.gitignore vendored
View File

@ -2,10 +2,11 @@
*.res
*.a
raylua_e.exe
raylua_r.exe
raylua_s.exe
raylua_s
raylua_e
src/autogen/bind.c
src/autogen/boot.c
src/autogen/builder.c
libraylua.a
libraylua.a

View File

@ -15,7 +15,7 @@ MODULES := raymath rlgl easings gestures physac raygui
PLATFORM ?= PLATFORM_DESKTOP
GRAPHICS ?= GRAPHICS_API_OPENGL_33
CFLAGS += -D$(GRAPHICS)
CFLAGS += -D$(GRAPHICS) -D$(PLATFORM)
USE_WAYLAND_DISPLAY ?= FALSE
USE_EXTERNAL_GLFW ?= FALSE
@ -38,7 +38,7 @@ else
EXTERNAL_FILES :=
endif
all: raylua_s raylua_e luajit raylib
all: raylua_s raylua_e raylua_r luajit raylib
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
@ -63,6 +63,10 @@ raylua_e: src/raylua_e.o src/raylua_self.o src/raylua_builder.o src/lib/miniz.o
$(EXTERNAL_FILES) libraylua.a
$(CC) -o $@ $^ $(LDFLAGS) luajit/src/libluajit.a
raylua_r: src/raylua_e.o src/raylua_self.o src/raylua_builder.o src/lib/miniz.o \
$(EXTERNAL_FILES) libraylua.a
$(CC) -o $@ $^ $(LDFLAGS) -mwindows luajit/src/libluajit.a
src/res/icon.res: src/res/icon.rc
$(WINDRES) $^ -O coff $@