2009-08-11 23:18:50 +02:00
|
|
|
LIBS = gtk+-2.0 poppler poppler-glib
|
2009-08-12 21:45:49 +02:00
|
|
|
FLAGS = `pkg-config --cflags --libs $(LIBS)`
|
2009-08-11 23:18:50 +02:00
|
|
|
SOURCE = zathura.c
|
|
|
|
TARGET = zathura
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): zathura.c config.h
|
|
|
|
gcc $(FLAGS) -Wall -o $(TARGET) $(SOURCE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGET)
|
|
|
|
|
2009-09-12 11:19:51 +02:00
|
|
|
debug:
|
2009-08-11 23:18:50 +02:00
|
|
|
gcc $(FLAGS) -Wall -o $(TARGET) $(SOURCE) -g
|
|
|
|
|
2009-09-12 11:19:51 +02:00
|
|
|
valgrind: debug
|
2009-08-11 23:18:50 +02:00
|
|
|
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./${TARGET}
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@echo installing executeable to /usr/bin
|
|
|
|
@mkdir -p /usr/bin
|
|
|
|
@cp -f ${TARGET} /usr/bin
|
|
|
|
@chmod 755 /usr/bin/${TARGET}
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executeable from /usr/bin
|
|
|
|
@rm -f /usr/bin/${TARGET}
|