File: Makefile

package info (click to toggle)
lief 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 16,036 kB
  • sloc: cpp: 76,013; python: 6,167; ansic: 3,355; pascal: 404; sh: 98; makefile: 32
file content (26 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
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
CC=gcc
CXX=g++

all: binadd.bin obfu

libadd.so: libadd.c
	$(CC) -Wl,--hash-style=gnu -fPIC -shared -o $@ $^

binadd.bin: binadd.c libadd.so
	$(CC) $^ -Wl,--hash-style=gnu -L. -ladd -o $@
	chmod a+rx $@

run: libadd.so binadd.bin obfu
	LD_LIBRARY_PATH=. ./binadd.bin 1 2
	LD_LIBRARY_PATH=. ./binadd_obf.bin 1 2


obfu: binadd.bin libadd.so
	python ./obfu.py
	chmod a+x *.bin
	chmod a+x *.so

.PHONY: clean

clean:
	rm -rf *.o *~ *.so *.bin