diff --git a/Makefile b/Makefile index 1369c5c..48fcc5e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ AR=ar CFLAGS=-O3 -Iinclude -g LDFLAGS=-lglfw -lm -CFILES=$(shell cd src && find -L * -type f -name '*.c') +CFILES=$(shell cd src && mingw32-find -L * -type f -name '*.c') OBJDIR=obj OBJ=$(addprefix $(OBJDIR)/, $(CFILES:.c=.o)) diff --git a/examples/Makefile b/examples/Makefile index bf2f931..4d91e1e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,9 +1,9 @@ CC=gcc CFLAGS=-O3 -I../include -LDFLAGS=-lglfw -L ../ -lgearlib -lm +LDFLAGS=C:\msys64\ucrt64\lib\libglfw3.a -L ../ -lgdi32 -lgearlib -lm -CFILES=$(shell find -L * -type f -name '*.c') +CFILES=$(shell mingw32-find -L * -type f -name '*.c') BINARIES=$(CFILES:.c=) all: $(BINARIES) diff --git a/examples/test.exe b/examples/test.exe new file mode 100644 index 0000000..35a279f Binary files /dev/null and b/examples/test.exe differ