Mercurial > projects > pwm
comparison Makefile @ 8:25e227eba3da
Fix asprintf compatibility code
Ensure compat/asprintf.o is built on platforms not providing asprintf.
Define the _GNU_SOURCE feature macro for the glib asprintf prototype.
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Fri, 28 Jul 2017 08:20:38 +0200 |
parents | 4269feba381e |
children | 8768fbd09bc5 |
comparison
equal
deleted
inserted
replaced
7:bec6f94453ec | 8:25e227eba3da |
---|---|
134 all: $(PACKAGE) $(MANPAGES) | 134 all: $(PACKAGE) $(MANPAGES) |
135 | 135 |
136 XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \ | 136 XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \ |
137 -DVERSION=\"$(VERSION)\" | 137 -DVERSION=\"$(VERSION)\" |
138 LDLIBS = -lpws -lnettle | 138 LDLIBS = -lpws -lnettle |
139 ifeq ($(HAVE_ASPRINTF),1) | |
140 XCPPFLAGS += -DHAVE_ASPRINTF | |
141 else | |
142 OBJS += compat/asprintf.o | |
143 endif | |
139 ifeq ($(HAVE_ERR_H),1) | 144 ifeq ($(HAVE_ERR_H),1) |
140 XCPPFLAGS += -DHAVE_ERR_H | 145 XCPPFLAGS += -DHAVE_ERR_H |
141 else | 146 else |
142 OBJS += compat/err.o | 147 OBJS += compat/err.o |
143 endif | 148 endif |