File: Makefile

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (16 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS = -Wall --std=c99
# This is where `make install` from libelf places its stuff
LIBELF_HEADERS = /usr/local/include/libelf/
LIBELF_LIBS = /usr/local/lib/

all: elf_creator

elf_creator: elf_creator.c
	gcc $(CFLAGS) -o elf_creator elf_creator.c \
		-I$(LIBELF_HEADERS) -L$(LIBELF_LIBS) -Wl,-rpath,$(LIBELF_LIBS) -lelf

clean:
	rm -f *.o
	rm -f *.so
	rm -f *.a
	rm -f elf_creator