~bt/rover

a7f4986c807c42f747560db9707c4f087b2e0d69 — Marcel Rodrigues 1 year, 6 months ago 1c737c2 + 7b5983d master
Merge pull request #41 from orbea/gentoo

Fix the build on gentoo.
2 files changed, 10 insertions(+), 2 deletions(-)

M Makefile
M rover.c
M Makefile => Makefile +8 -2
@@ 1,14 1,20 @@
LDLIBS := -lncursesw
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
DATAROOTDIR ?= $(PREFIX)/share
DATADIR ?= $(DATAROOTDIR)
MANDIR ?= $(DATADIR)/man

CFLAGS ?= -O2

PKG_CONFIG ?= pkg-config

CFLAGS_NCURSESW := `$(PKG_CONFIG) --cflags ncursesw`
LIBS_NCURSESW := `$(PKG_CONFIG) --libs ncursesw`

all: rover

rover: rover.c config.h
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)
	$(CC) $(CFLAGS) $(CFLAGS_NCURSESW) -o $@ $< $(LDFLAGS) $(LIBS_NCURSESW)

install: rover
	rm -f $(DESTDIR)$(BINDIR)/rover

M rover.c => rover.c +2 -0
@@ 1,4 1,6 @@
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE       700
#endif
#define _XOPEN_SOURCE_EXTENDED
#define _FILE_OFFSET_BITS   64