Commit 77d67c8a authored by Kir Kolyshkin's avatar Kir Kolyshkin

Makefile: move -D to CPPFLAGS

This is what CPPFLAGS is for.
Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
parent d66fc9a6
......@@ -19,6 +19,7 @@ VERSION:=$(shell sed -ne 's/\# define VERSION \"\(.*\)\"/\1/p' ioping.c)${EXTRA_
DISTDIR=$(PACKAGE)-$(VERSION)
DISTFILES=$(SRCS) $(MANS) $(DOCS) $(SPEC) Makefile
PACKFILES=$(BINARY) $(MANS) $(MANS_F) $(DOCS)
CPPFLAGS+=-DEXTRA_VERSION=\"${EXTRA_VERSION}\"
STRIP=strip
TARGET=$(shell ${CC} -dumpmachine)
......@@ -59,7 +60,7 @@ install: $(BINARY) $(MANS)
install -m 644 $(MANS) $(DESTDIR)$(MAN1DIR)
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -DEXTRA_VERSION=\"${EXTRA_VERSION}\" -c -o $@ $<
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
%.ps: %.1
man -t ./$< > $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment