mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:45:59 +01:00
Simplify source file filtering
This commit is contained in:
parent
84a1f213d6
commit
2498d5cf81
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -5,16 +5,16 @@ include colors.mk
|
|||
include common.mk
|
||||
|
||||
# source files
|
||||
OSOURCE = $(sort $(wildcard ${PROJECT}/*.c) \
|
||||
${PROJECT}/css-definitions.c)
|
||||
OSOURCE = $(sort $(wildcard ${PROJECT}/*.c) \
|
||||
${PROJECT}/css-definitions.c)
|
||||
SOURCE_FILTER =
|
||||
|
||||
ifneq (${WITH_SQLITE},0)
|
||||
INCS += $(SQLITE_INC)
|
||||
LIBS += $(SQLITE_LIB)
|
||||
SOURCE = $(OSOURCE)
|
||||
CPPFLAGS += -DWITH_SQLITE
|
||||
else
|
||||
SOURCE = $(filter-out ${PROJECT}/database-sqlite.c,$(OSOURCE))
|
||||
SOURCE_FILTER += ${PROJECT}/database-sqlite.c
|
||||
endif
|
||||
|
||||
ifneq ($(WITH_MAGIC),0)
|
||||
|
@ -50,6 +50,7 @@ CPPFLAGS += -DDBUSINTERFACEDIR=\"${DBUSINTERFACEDIR}\"
|
|||
endif
|
||||
endif
|
||||
|
||||
SOURCE = $(filter-out $(SOURCE_FILTER),$(OSOURCE))
|
||||
OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o})
|
||||
OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o})
|
||||
OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
|
||||
|
|
Loading…
Reference in a new issue