File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ TARGET = openmrac.exe
3636RES = omicon.res
3737OBJS := $(shell ls *.cpp | sed 's/.cpp/.o/g' | tr '\n' ' ')
3838
39- .PHONY: all clean install uninstall deb
39+ .PHONY: all clean dist
4040
4141all: $(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)
Original file line number Diff line number Diff line change 1515
1616inline bool initGlExt (void )
1717{
18+ //glewExperimental = 1; // If using GLEW version 1.13 or earlier
1819 return glewInit () == GLEW_OK ;
1920}
2021
You can’t perform that action at this time.
0 commit comments