Skip to content

Commit

Permalink
Feature: Windows XP compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mkostoevr committed Dec 21, 2019
1 parent 37b2fb8 commit 38cd0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ C=i686-w64-mingw32-gcc
L=golink # just cause this fucking shitty-ported ld sucks my dick
R=gorc # shit, golink not works with windres output...
CFLAGS=-Iinclude -DMAKEFILE -DONE_SOURCE $(LANG) $(O) $(W) -nostdlib -ffreestanding -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-leading-underscore -fno-ident -fno-asynchronous-unwind-tables -c -o # here is output file name
LFLAGS=kernel32.dll user32.dll gdi32.dll msvcrt.dll /mix /entry Start /fo # here is output file name... and this stupid linker does not accept "main" entry... nothing working properly on this damn operating system
LFLAGS=advapi32.dll kernel32.dll user32.dll gdi32.dll msvcrt.dll /mix /entry Start /fo # here is output file name... and this stupid linker does not accept "main" entry... nothing working properly on this damn operating system
RFLAGS=/r /fo # here is output file name
DEL=del /q # here is deleting file name/pattern

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### Simple version (relatively huge size, no icon)

cd src
gcc *.c -I../include -luser32 -lgdi32 -lkernel32 -o ../bin/CFLF.exe -mwindows
gcc *.c -I../include -ladvapi32 -luser32 -lgdi32 -lkernel32 -o ../bin/CFLF.exe -mwindows

Result size for mingw-w64 i686-8.1.0-posix-dwarf-rt_v6-rev0: 73 784 Bytes

Expand Down

0 comments on commit 38cd0ac

Please sign in to comment.