-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (64 loc) · 2.38 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
CC=gcc
CFLAGS=-I. -I./opus \
-Os \
-Wall -Wextra \
-Wno-unused-parameter \
-fno-stack-check \
-fno-stack-protector \
-mno-stack-arg-probe \
-momit-leaf-frame-pointer \
-march=i486 -mtune=i686 \
-flto \
-fno-ident \
-mpreferred-stack-boundary=2 \
-foptimize-strlen \
-fno-exceptions \
-fno-dwarf2-cfi-asm \
-fno-asynchronous-unwind-tables \
-Wstack-usage=4096 \
-fgcse-sm \
-fgcse-las \
# -fomit-frame-pointer \
# -freorder-blocks -fweb -frename-registers -funswitch-loops\
# -fwhole-program -fstrict-aliasing -fschedule-insns
# -D__SSE1 sse_func.o
LDFLAGS= -nostdlib -lgcc -lkernel32 -lmsvcrt -luser32 -lgdi32 -lwsock32 -s
LDFLAGS+= -Wl,-s,-dynamicbase \
-Wl,-nxcompat \
-Wl,--no-seh \
-Wl,--relax \
-Wl,--disable-runtime-pseudo-reloc \
-Wl,--enable-auto-import \
-Wl,--disable-stdcall-fixup
in_opus.dll: in_opus.o resample.o infobox.o http.o wspiapi.o resource.o
$(CC) -o in_opus.dll in_opus.o resample.o infobox.o http.o wspiapi.o resource.o\
oflto/*.o opusfile/*.c -e_DllMain@12 -mdll $(LDFLAGS) $(CFLAGS)
cp in_opus.dll "D:\Program Files\MediaPlayers\Winamp\Plugins"
cp in_opus.dll "D:\Shared docs"
cp in_opus.dll "D:\Program Files\MediaPlayers\winamp566\Plugins"
cp in_opus.dll "D:\Program Files\MediaPlayers\winamp58\Plugins"
cp in_opus.dll "D:\Program Files\MediaPlayers\winamp531\Plugins"
cp in_opus.dll "D:\Program Files\MediaPlayers\MediaMonkey3\Plugins"
cp in_opus.dll "D:\Program Files\MediaPlayers\MediaMonkey4\Plugins"
in_opus.o : in_opus.c infobox.h resample.h resource.h
$(CC) -c in_opus.c $(CFLAGS)
infobox.o : infobox.c infobox.h utf_ansi.c
$(CC) -c infobox.c $(CFLAGS)
resource.o: resource.rc
windres resource.rc resource.o
wspiapi.o : wspiapi.c wspiapi.h
$(CC) -c wspiapi.c $(CFLAGS)
http.o : http.c http.h wspiapi.h winerrno.h
$(CC) -c http.c $(CFLAGS)
resample.o: resample.c resample.h
$(CC) -c resample.c $(CFLAGS) -O2 -ffast-math
#info.o: opusfile/info.c
# $(CC) -c opusfile/info.c -o opusfile/info.o $(CFLAGS)
#opusfile.o: opusfile/opusfile.c
# $(CC) -c opusfile/opusfile.c -o opusfile/opusfile.o $(CFLAGS)
#opusfile.o: opusfile/opusfile.c
# $(CC) -c opusfile/opusfile.c -o opusfile/opusfile.o $(CFLAGS)
#stream.o: opusfile/stream.c
# $(CC) -c opusfile/stream.c -o opusfile/stream.o $(CFLAGS)
clean :
rm *.o in_opus.dll