forked from louigi600/obash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (16 loc) · 712 Bytes
/
Makefile
File metadata and controls
29 lines (16 loc) · 712 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
DATE = `date '+%Y-%m-%d-%H%M'`
FILES = README.txt COPYING Makefile obfuscated_bash.c interpreter.c functions.h functions.c recreate_interpreter_header
default: all
interpreter.h: interpreter.c functions.c
./recreate_interpreter_header
obash: obash.c interpreter.h functions.h functions.c
$(CC) obash.c -o obash -lssl -lcrypto
all: obash
clean:
rm -f obash *.x interpreter.h
backup:
tar cpzf old/obash_$(DATE).tgz $(FILES) obash.c from_my_to_distributable.patch
distributable: clean
mkdir -p distributable/obash
cp -p $(FILES) testme distributable/obash
( cd distributable/obash ; ln -s obfuscated_bash.c obash.c ; patch -p1 < ../../from_my_to_distributable.patch ; rm -f *.orig )