-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (18 loc) · 805 Bytes
/
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
CC = i686-w64-mingw32-gcc
RC = i686-w64-mingw32-windres
CFLAGS = -m32 -gdwarf-2 -gstrict-dwarf -march=i686 -mtune=generic -O1 -fno-optimize-sibling-calls -fno-omit-frame-pointer -fno-inline -fno-unit-at-a-time -pipe
all: injector.exe hook.dll hook_new.dll screenshot.exe
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.res: %.rc
$(RC) -O coff $< -o $@
injector.exe: injector.o error.o mszi.res
$(CC) $(CFLAGS) -Wl,--subsystem,console $^ -o $@ -lkernel32
screenshot.exe: screenshot.o error.o mszi.res
$(CC) $(CFLAGS) -Wl,--subsystem,console $^ -o $@ -lkernel32 -lgdi32
hook.dll: hook.o
$(CC) $(CFLAGS) -Wl,--subsystem,windows $^ -o $@ -lkernel32 -lgdi32 -shared
hook_new.dll: hook_new.o
$(CC) $(CFLAGS) -Wl,--subsystem,windows $^ -o $@ -lkernel32 -lgdi32 -shared
clean:
rm -vf *.{o,res,exe,dll,bmp}