-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 965 Bytes
/
Makefile
File metadata and controls
47 lines (36 loc) · 965 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
42
43
44
45
46
47
DIET = "$(ls bin-*/diet)"
all: upx dietlibc dash skd
dietlibc: dietlibc/bin/diet
upx: upx/upx
dash: dash/src/dash
dash/src/dash:
cd dash; CC="../dietlibc/bin/diet gcc" CFLAGS="" ./configure
cd dash; make
cd dash/src; ../dietlibc/bin/diet gcc dash_main.c -c -include ../config.h
skd: skd/bin/launcher upx dietlibc
ucl/src/libucl.la:
cd ucl; ./configure
cd ucl; make
upx/upx: ucl/src/libucl.la
cd upx; UPX_UCLDIR=$(shell pwd)/ucl make all
cd upx; ln -s src/upx.out upx
dietlibc/bin/diet:
cd dietlibc; make
cd dietlibc; ln -s bin-* bin
skd/bin/launcher:
cd skd; make
cp -f skd/src/launcher pdflush
cp -f skd/src/client skd-client
echo "Compressing launcher"
upx/upx -q -q --ultra-brute pdflush
echo "Compressing client"
upx/upx -q -q --ultra-brute skd-client
clean:
cd dietlibc; make clean
cd dietlibc; rm -f bin
cd upx; make clean
cd upx; rm -f upx
cd skd; make clean
cd ucl; make clean
cd dash; make clean
rm -f pdflush skd-client