memzap

replay memory writes
git clone git://git.2f30.org/memzap
Log | Files | Refs | README | LICENSE

commit 13b9ef7de2cc0016ed3304da34d125d00d9f0766
parent bd2e8c0038f456dc8be91fb4625e74815703ed7a
Author: sin <sin@2f30.org>
Date:   Fri,  1 Mar 2013 16:21:45 +0000

Add Makefile.linux

Diffstat:
AMakefile.linux | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/Makefile.linux b/Makefile.linux @@ -0,0 +1,34 @@ +BIN = memzap +VER = 0.1 +SRC = memzap.c mem.c utils.c md5.c linux_ops.c +OBJ = ${SRC:.c=.o} + +PREFIX = /usr + +CC = gcc + +INCS = -I/usr/local/include +LIBS = -L/usr/local/lib + +CFLAGS += -g -O3 -Wall -Wextra -Wunused -DVERSION=\"${VER}\" ${INCS} +LDFLAGS += + +${BIN}: ${OBJ} + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJ} + +%.o: %.c + ${CC} ${CFLAGS} -c -o $@ $< + +clean: + rm -rf ${BIN} ${OBJ} + +all: memzap + +install: + cp -f ${BIN} ${PREFIX}/bin + chmod 755 ${PREFIX}/bin/${BIN} + +uninstall: + rm -f ${PREFIX}/bin/${BIN} + +.PHONY: all clean install uninstall