Skip to content

Commit

Permalink
File rearrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Mar 1, 2018
1 parent 7fd1514 commit be15e22
Show file tree
Hide file tree
Showing 6 changed files with 782 additions and 778 deletions.
116 changes: 58 additions & 58 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
# Compiled resources
*.res

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

# Miscellaneous
make.ini
# Compiled resources
*.res

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

# Miscellaneous
make.ini
22 changes: 13 additions & 9 deletions Assets/Compile.bat → Compile.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
@PUSHD %~DP0
SET src=TetrisAI.c
SET exe=Tetris_release.exe
SET cflags=-O3 -Os -s -m32 -std=c11
gcc.exe %src% -c -o Tetris.o %cflags%
windres.exe -i Tetris.rc -F pe-i386 --input-format=rc -o Tetris.res -O coff
gcc.exe Tetris.o Tetris.res -o %exe% %cflags%
@DEL /F /Q Tetris.o
@DEL /F /Q Tetris.res
@PUSHD %~DP0

SET src=TetrisAI.c
SET exe=Tetris_release.exe
SET cflags=-O3 -Os -s -m32 -std=c11

gcc.exe %src% -c -o Tetris.o %cflags%
windres.exe -i Tetris.rc -F pe-i386 --input-format=rc -o Tetris.res -O coff
gcc.exe Tetris.o Tetris.res -o %exe% %cflags%

@DEL /F /Q Tetris.o
@DEL /F /Q Tetris.res

@POPD
Loading

0 comments on commit be15e22

Please sign in to comment.