copy required mingw DLLs to working directory
This commit is contained in:
parent
a134f76396
commit
00c3484a6c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.exe
|
*.exe
|
||||||
|
*.dll
|
||||||
|
12
Makefile
Executable file → Normal file
12
Makefile
Executable file → Normal file
@ -1,13 +1,23 @@
|
|||||||
|
|
||||||
SFML_DIR := /c/apps/SFML-1.6
|
SFML_DIR := /c/apps/SFML-1.6
|
||||||
PREFIX := i686-pc-mingw32
|
PREFIX := i686-pc-mingw32
|
||||||
|
MINGW_DIR := /usr/$(PREFIX)/sys-root/mingw/bin
|
||||||
CC := $(PREFIX)-gcc
|
CC := $(PREFIX)-gcc
|
||||||
CXX := $(PREFIX)-g++
|
CXX := $(PREFIX)-g++
|
||||||
LD := $(PREFIX)-ld
|
LD := $(PREFIX)-ld
|
||||||
CPPFLAGS := -I$(SFML_DIR)/include
|
CPPFLAGS := -I$(SFML_DIR)/include
|
||||||
LDFLAGS := -L$(SFML_DIR)/lib -lsfml-system -lsfml-window -static-libstdc++ -static-libgcc
|
LDFLAGS := -L$(SFML_DIR)/lib -lsfml-system -lsfml-window -static-libstdc++ -static-libgcc
|
||||||
|
|
||||||
all: clock window events
|
all: clock window events dlls
|
||||||
|
|
||||||
%: %.cpp
|
%: %.cpp
|
||||||
$(CXX) -o $@ $(CPPFLAGS) $^ $(LDFLAGS)
|
$(CXX) -o $@ $(CPPFLAGS) $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
.PHONY: dlls
|
||||||
|
dlls: libgcc_s_dw2-1.dll
|
||||||
|
|
||||||
|
libgcc_s_dw2-1.dll:
|
||||||
|
cp $(MINGW_DIR)/$@ .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f *.exe *.dll
|
||||||
|
0
events.cpp
Executable file → Normal file
0
events.cpp
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user