forked from cyberkitsune/PSO2Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 738 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (29 loc) · 738 Bytes
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
SRCS+=dllmain.c
DLLS=rsainject.dll dumper.dll
#Default Warnings Flags
WFLAGS:=-Wall -W (WFLAGS)
#Default Compiler Flags
CFLAGS:=-Os -Wall -W $(CFLAGS)
#Default Linker Flags
LDFLAGS+=-shared -s
#local compiler or use a cross-compiler
#PREFIX=i686-w64-mingw32
ifdef PREFIX
CC=$(PREFIX)-gcc
else
# We really do need this. Note that overriding this on the command-line still
# works: see section 9.5 of the make manual.
CC=gcc
endif
#Hide commands by default
ifndef V
AT:=@
endif
all: $(SRCS) $(DLLS)
rsainject.dll: $(SRCS)
$(AT) $(CC) $(CFLAGS) -UDUMPER $< $(LDFLAGS) -o $@
dumper.dll: $(SRCS)
$(AT) $(CC) $(CFLAGS) -DDUMPER $< $(LDFLAGS) -o $@
.PHONY : clean # .PHONY ignores files named clean
clean:
-$(AT) $(RM) $(DLLS)