Skip to content

Commit 0bbf1d1

Browse files
authored
update main makefile
1 parent 2f70041 commit 0bbf1d1

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Makefile

+8-9
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,26 @@ WARNINGS=-Wall \
88
-Wclobbered \
99
-Wempty-body \
1010
-Wignored-qualifiers \
11-
-Wstringop-overflow=4 \
1211
-Wsuggest-attribute=pure \
1312
-Wsuggest-attribute=const \
1413
-Wsuggest-attribute=noreturn \
15-
-Wsuggest-attribute=malloc \
16-
-Walloc-zero \
1714
-Wuninitialized \
1815
-Wtype-limits \
1916
-Woverride-init \
2017
-Wlogical-op \
2118
-Wno-multichar \
2219
-Wno-attributes \
23-
-Wduplicated-cond \
24-
-Wduplicated-branches \
25-
-Wnull-dereference \
2620
-Wno-unused-function \
2721
-Wshadow \
2822
-Warray-bounds=2 \
2923
-Wstack-usage=4096 \
3024
-Werror=vla \
3125
-pedantic \
3226
-Wc++-compat
27+
-Wstringop-overflow=4 \
28+
-Wduplicated-cond \
29+
-Wduplicated-branches \
30+
-Wnull-dereference \
3331

3432
# -Wunused-parameter
3533
# -Wtraditional-conversion
@@ -41,6 +39,7 @@ WARNINGS=-Wall \
4139

4240
CFLAGS=-Os -std=c99 \
4341
-finput-charset=UTF-8 \
42+
-fshort-wchar \
4443
-m32 -march=i386 -mtune=i686 \
4544
-mno-stack-arg-probe \
4645
-mpreferred-stack-boundary=2 \
@@ -57,10 +56,10 @@ CFLAGS=-Os -std=c99 \
5756
-fno-semantic-interposition \
5857
-fgcse-sm \
5958
-fgcse-las \
60-
-fno-plt \
6159
-D__USE_MINGW_ANSI_STDIO=0 \
6260
-Wp,-D_FORTIFY_SOURCE=2 \
63-
$(WARNINGS)
61+
$(WARNINGS) \
62+
-fno-plt
6463

6564
LDFLAGS=-nostdlib \
6665
-lmsvcrt \
@@ -85,7 +84,7 @@ EXELD = $(LDFLAGS) \
8584

8685
default: AltSnap.exe hooks.dll
8786

88-
hooks.dll : hooks.c hooks.def hooks.h hooksr.o unfuck.h nanolibc.h zones.c snap.c
87+
hooks.dll : hooks.c hooks.h hooksr.o unfuck.h nanolibc.h zones.c snap.c
8988
$(CC) -o hooks.dll hooks.c hooksr.o $(CFLAGS) $(LDFLAGS) -mdll -e_DllMain@12 -Wl,--kill-at
9089

9190
AltSnap.exe : altsnapr.o altsnap.c hooks.h tray.c config.c languages.h languages.c unfuck.h nanolibc.h

0 commit comments

Comments
 (0)