mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:44:20 +01:00
Updated Makefile and register file type
This commit is contained in:
parent
dc706aa912
commit
95c3037a45
@ -20,6 +20,9 @@ CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
|
|||||||
# debug
|
# debug
|
||||||
DFLAGS = -g
|
DFLAGS = -g
|
||||||
|
|
||||||
|
# ld
|
||||||
|
LDFLAGS = -rdynamic
|
||||||
|
|
||||||
# compiler
|
# compiler
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
|
||||||
|
@ -29,11 +29,11 @@ ${DOBJECTS}: config.mk
|
|||||||
|
|
||||||
${PLUGIN}: ${OBJECTS}
|
${PLUGIN}: ${OBJECTS}
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@${LD} -shared ${LDFLAGS} -o ${PLUGIN}.so $(OBJECTS)
|
@${CC} -shared ${LDFLAGS} -o ${PLUGIN}.so $(OBJECTS) ${LIBS}
|
||||||
|
|
||||||
${PLUGIN}-debug: ${DOBJECTS}
|
${PLUGIN}-debug: ${DOBJECTS}
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@${LD} -shared ${LDFLAGS} -o ${PLUGIN}-debug.so $(DOBJECTS)
|
@${CC} -shared ${LDFLAGS} -o ${PLUGIN}-debug.so $(DOBJECTS) ${LIBS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so ${PLUGIN}-debug.so
|
@rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so ${PLUGIN}-debug.so
|
||||||
|
@ -5,6 +5,15 @@
|
|||||||
#include "djvu.h"
|
#include "djvu.h"
|
||||||
#include "../../zathura.h"
|
#include "../../zathura.h"
|
||||||
|
|
||||||
|
bool
|
||||||
|
plugin_register(void)
|
||||||
|
{
|
||||||
|
zathura_document_plugin_register("djvu", djvu_document_open);
|
||||||
|
zathura_document_plugin_register("DJVU", djvu_document_open);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
djvu_document_open(zathura_document_t* document)
|
djvu_document_open(zathura_document_t* document)
|
||||||
{
|
{
|
||||||
|
@ -29,11 +29,11 @@ ${DOBJECTS}: config.mk
|
|||||||
|
|
||||||
${PLUGIN}: ${OBJECTS}
|
${PLUGIN}: ${OBJECTS}
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@${LD} -shared ${LDFLAGS} -o ${PLUGIN}.so $(OBJECTS)
|
@${CC} -shared ${LDFLAGS} -o ${PLUGIN}.so $(OBJECTS) ${LIBS}
|
||||||
|
|
||||||
${PLUGIN}-debug: ${DOBJECTS}
|
${PLUGIN}-debug: ${DOBJECTS}
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@${LD} -shared ${LDFLAGS} -o ${PLUGIN}-debug.so $(DOBJECTS)
|
@${CC} -shared ${LDFLAGS} -o ${PLUGIN}-debug.so $(DOBJECTS) ${LIBS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so ${PLUGIN}-debug.so
|
@rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so ${PLUGIN}-debug.so
|
||||||
|
@ -6,6 +6,15 @@
|
|||||||
#include "pdf.h"
|
#include "pdf.h"
|
||||||
#include "../../zathura.h"
|
#include "../../zathura.h"
|
||||||
|
|
||||||
|
bool
|
||||||
|
plugin_register(void)
|
||||||
|
{
|
||||||
|
zathura_document_plugin_register("pdf", pdf_document_open);
|
||||||
|
zathura_document_plugin_register("PDF", pdf_document_open);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
pdf_document_open(zathura_document_t* document)
|
pdf_document_open(zathura_document_t* document)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user