diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index 78ae707..de20a97 100644 --- a/test/Makefile +++ b/test/Makefile @@ -2,5 +2,11 @@ CC=i686-w64-mingw32-gcc CFLAGS=-static-libgcc -static-libstdc++ -I.. LIBS=-lopengl32 -lgdi32 -lkernel32 -layered.exe: layered.c - $(CC) $(CFLAGS) -o layered.exe layered.c ../wglarb.c $(LIBS) +WINDRES=i686-w64-mingw32-windres + +layered.exe: layered.c layered.rc.o + $(CC) $(CFLAGS) -o layered.exe layered.c layered.rc.o ../wglarb.c $(LIBS) -Wl,--subsystem,windows + + +layered.rc.o: layered.rc + $(WINDRES) --input layered.rc --output layered.rc.o |