Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-free committed Jul 25, 2023
0 parents commit 3cd76be
Show file tree
Hide file tree
Showing 9 changed files with 1,318 additions and 0 deletions.
55 changes: 55 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# edcre GNUMakefile by Alex Free
CXX=g++
CXX_FLAGS=-Wall -Werror -Ofast
VER=1.0

edcre: clean
$(CXX) $(CXX_FLAGS) lec.cc -o edcre

clean:
rm -rf edcre.exe edcre

linux-x86:
make edcre CXX_FLAGS="-m32 -static -Wall -Werror -Ofast"

linux-x86_64:
make edcre CXX_FLAGS="-static -Wall -Werror -Ofast"

windows-x86:
make edcre CXX="i686-w64-mingw32-g++"

windows-x86_64:
make edcre CXX="x86_64-w64-mingw32-g++"

linux-release:
rm -rf edcre-$(VER)-$(PLATFORM) edcre-$(VER)-$(PLATFORM).zip
mkdir edcre-$(VER)-$(PLATFORM)
cp -rv edcre images readme.md license.txt edcre-$(VER)-$(PLATFORM)
chmod -R 777 edcre-$(VER)-$(PLATFORM)
zip -r edcre-$(VER)-$(PLATFORM).zip edcre-$(VER)-$(PLATFORM)
rm -rf edcre-$(VER)-$(PLATFORM)

windows-release:
rm -rf edcre-$(VER)-$(PLATFORM) edcre-$(VER)-$(PLATFORM).zip
mkdir edcre-$(VER)-$(PLATFORM)
cp -rv edcre.exe images readme.md license.txt edcre-$(VER)-$(PLATFORM)
chmod -R 777 edcre-$(VER)-$(PLATFORM)
zip -r edcre-$(VER)-$(PLATFORM).zip edcre-$(VER)-$(PLATFORM)
rm -rf edcre-$(VER)-$(PLATFORM)

linux-x86-release: linux-x86
make linux-release PLATFORM=linux_x86_static

linux-x86_64-release: linux-x86_64
make linux-release PLATFORM=linux_x86_64_static

windows-x86-release: windows-x86
make windows-release PLATFORM=windows_x86

windows-x86_64-release: windows-x86_64
make windows-release PLATFORM=windows_x86_64

clean-zip: clean
rm -rf *.zip

all: linux-x86-release linux-x86_64-release windows-x86-release windows-x86_64-release
Binary file added images/ddr2j-burning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ddr2j-tp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3cd76be

Please sign in to comment.