Skip to content

Commit 319aec1

Browse files
committed
Mingw32 dist generation.
1 parent 92cba47 commit 319aec1

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/Makefile.mingw

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ TARGET = openmrac.exe
3636
RES = omicon.res
3737
OBJS := $(shell ls *.cpp | sed 's/.cpp/.o/g' | tr '\n' ' ')
3838

39-
.PHONY: all clean install uninstall deb
39+
.PHONY: all clean dist
4040

4141
all: $(TARGET)
4242

@@ -51,3 +51,12 @@ clean:
5151

5252
$(TARGET): $(RES) $(OBJS)
5353
$(LINK) -o $(TARGET) $(OBJS) $(RES) $(LFLAGS)
54+
55+
dist: all
56+
$(eval DISTDIR := openmrac-$(shell date +%Y%m%d -r openmrac.exe))
57+
mkdir -p $(DISTDIR)
58+
rm -f $(DISTDIR)/*
59+
cp openmrac.exe $(DISTDIR)
60+
cp mingw32/glew32.dll $(DISTDIR)
61+
cp mingw32/SDL2.dll $(DISTDIR)
62+
cp ../../OpenMRac-data/openmrac.dat $(DISTDIR)

src/gl1.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
inline bool initGlExt(void)
1717
{
18+
//glewExperimental = 1; // If using GLEW version 1.13 or earlier
1819
return glewInit() == GLEW_OK;
1920
}
2021

0 commit comments

Comments
 (0)