Now builds without glib
This commit is contained in:
parent
158b2b3ba6
commit
8eececcac8
5 changed files with 40 additions and 13 deletions
30
common.mk
30
common.mk
|
|
@ -1,17 +1,29 @@
|
|||
CFLAGS := $(shell pkg-config --cflags glib-2.0) -std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes
|
||||
LDFLAGS := $(shell pkg-config --libs glib-2.0)
|
||||
CC ?= gcc
|
||||
$(info CC=$(CC))
|
||||
# Set V=1 for verbose mode...
|
||||
V ?= 0
|
||||
CFLAGS += -DINCLUDE_TESTS $(EXTRA_CFLAGS)
|
||||
HUSH = $(TOPLEVEL)/lib/hush
|
||||
|
||||
# Check to make sure variables are properly set
|
||||
ifeq ($(TOPLEVEL),)
|
||||
$(error $$TOPLEVEL is unset)
|
||||
endif
|
||||
|
||||
include $(TOPLEVEL)/config.mk
|
||||
|
||||
TEST_CFLAGS := $(shell pkg-config --cflags glib-2.0) -DINCLUDE_TESTS
|
||||
TEST_LDFLAGS := $(shell pkg-config --libs glib-2.0)
|
||||
|
||||
CFLAGS := -std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes
|
||||
LDFLAGS :=
|
||||
|
||||
ifneq ($(INCLUDE_TESTS),0)
|
||||
CFLAGS += $(TEST_CFLAGS)
|
||||
LDFLAGS += $(TEST_LDFLAGS)
|
||||
endif
|
||||
|
||||
CC ?= gcc
|
||||
$(info CC=$(CC))
|
||||
# Set V=1 for verbose mode...
|
||||
V ?= 0
|
||||
CFLAGS += $(EXTRA_CFLAGS)
|
||||
HUSH = $(TOPLEVEL)/lib/hush
|
||||
|
||||
|
||||
ifsilent = $(if $(findstring 0, $(V)),$(1),)
|
||||
hush = $(call ifsilent,$(HUSH) $(1))
|
||||
#.SUFFIXES:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue