1 |
|
2 |
# |
3 |
# MinGW makefile |
4 |
# |
5 |
|
6 |
CC=gcc |
7 |
CFLAGS=-Wall |
8 |
|
9 |
.SUFFIXES: |
10 |
|
11 |
default: seamlessrdp.zip |
12 |
|
13 |
seamlessrdp.zip: seamlessrdpshell.exe seamlessrdp.dll vchannel.dll |
14 |
-rm $@ |
15 |
zip $@ $^ |
16 |
|
17 |
seamlessrdpshell.exe: main.c vchannel.dll |
18 |
$(CC) $(CFLAGS) -mwindows -o $@ $^ -lwtsapi32 |
19 |
|
20 |
vchannel.dll: vchannel.c |
21 |
$(CC) $(CFLAGS) -shared -o $@ $^ -lwtsapi32 |
22 |
|
23 |
seamlessrdp.dll: HookDll/seamlessrdp.dll |
24 |
cp $^ $@ |
25 |
|
26 |
HookDll/seamlessrdp.dll: HookDll/hookdll.c vchannel.dll |
27 |
$(CC) $(CFLAGS) -shared -o $@ $^ -lgdi32 |
28 |
|
29 |
clean: |
30 |
-rm -f *.o HookDll/*.o |
31 |
-rm -f seamlessrdpshell.exe vchannel.dll HookDll/seamlessrdp.dll seamlessrdp.dll seamlessrdp.zip |