-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 836 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 836 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
#
# Makefile for livepatch
# $Id: Makefile 330 2004-11-03 11:38:02Z ukai $
# Copyright (C) 2004 Fumitoshi UKAI <ukai@debian.or.jp>
# All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of
# the GNU General Public License version 2.
# #
# CFLAGS=-Wall -O2
.PHONY: all clean tfile libfoo.so livepatch testlive
livepatch.o fixup.o: livepatch-arch.h
livepatch: livepatch.o
$(CC) -o $@ $< -lbfd
fixup: fixup.o
$(CC) -o $@ $< -lbfd
bfd: bfd.o
$(CC) -o $@ $< -lbfd
clean:
-rm -f *.o *.s *.a *.so
-rm -f *.asm
-rm -f *.sect
-rm -f livepatch fixup bfd
libfoo.so: libfoo.o
$(CC) -shared -fPIC -o $@ $<
objdump -D $@ > $@.asm
objdump -s $@ > $@.sect
testlive: testlive.o
$(CC) -o $@ $<
objdump -D $@ > $@.asm
all: livepatch libfoo.so testlive