forked from taviso/wpunix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 741 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
28
29
30
31
32
33
34
35
36
37
38
CPPFLAGS=-Iinclude -Iintercept -U_FORTIFY_SOURCE
CFLAGS=-fno-stack-protector -m32
.PHONY: clean
all: wordperfect8_i386.deb
%_i386.deb: %_i386
dpkg-deb --build --root-owner-group $^
@ls -l $@
macro/mactool:
make -C macro
util/grsutil:
make -C util
wordperfect8_i386: libcompat.so libwppatch.so | macro/mactool util/grsutil
bash build8.sh $@
libcompat.so: compat.o
ld -m elf_i386 -shared -o $@ $<
intercept/hook.o intercept/libdisasm.a:
make -C intercept
libwppatch.so: patch.o intercept/hook.o patches/mapkey.o intercept/libdisasm.a
ld -m elf_i386 -shared -o $@ $^
clean:
rm -f *.o *.deb *.so
rm -f patches/*.o
rm -rf build wordperfect?_i386
rm -rf lib
make -C intercept clean
make -C macro clean
make -C util clean