forked from BR903/ELFkickers
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
36 lines (27 loc) · 782 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
# The top-level makefile simply invokes all the other makefiles
prefix = /usr/local
PROGRAMS = elfls objres rebind sstrip elftoc ebfc infect redefine
all: $(PROGRAMS)
bin/%:
mkdir -p bin
$(MAKE) -C$* $*
cp $*/$* $@
doc/%.1:
mkdir -p doc
cp $*/$*.1 $@
elfls: bin/elfls doc/elfls.1
objres: bin/objres doc/objres.1
rebind: bin/rebind doc/rebind.1
sstrip: bin/sstrip doc/sstrip.1
elftoc: bin/elftoc doc/elftoc.1
ebfc: bin/ebfc doc/ebfc.1
infect: bin/infect doc/infect.1
redefine: bin/redefine doc/redefine.1
install: $(PROGRAMS)
mkdir -p $(prefix)/bin
cp bin/* $(prefix)/bin/.
mkdir -p $(prefix)/share/man/man1
cp doc/* $(prefix)/share/man/man1/.
clean:
for dir in elfrw $(PROGRAMS) ; do $(MAKE) -C$$dir clean ; done
rm -f $(PROGRAMS:%=bin/%) $(PROGRAMS:%=doc/%.1)