1 CFLAGS
= -Wall
--std
=c99
2 # This is where `make install` from libelf places its stuff
3 LIBELF_HEADERS
= /usr
/local
/include/libelf
/
4 LIBELF_LIBS
= /usr
/local
/lib
/
8 elf_creator
: elf_creator.c
9 gcc
$(CFLAGS
) -o elf_creator elf_creator.c \
10 -I
$(LIBELF_HEADERS
) -L
$(LIBELF_LIBS
) -Wl
,-rpath
,$(LIBELF_LIBS
) -lelf