| 1 |
# SPDX-License-Identifier: BSD-3-Clause |
| 2 |
# Copyright 2015-2019, Intel Corporation |
| 3 |
|
| 4 |
# |
| 5 |
# examples/libpmemobj/pminvaders/Makefile -- build the pminvaders examples |
| 6 |
# |
| 7 |
TOP := $(dir $(lastword $(MAKEFILE_LIST)))../../../../ |
| 8 |
|
| 9 |
include $(TOP)/src/common.inc |
| 10 |
|
| 11 |
NCURSES := $(call check_package, ncurses) |
| 12 |
ifeq ($(NCURSES),y) |
| 13 |
PROGS = pminvaders pminvaders2 |
| 14 |
else |
| 15 |
$(info NOTE: Skipping pminvaders and pminvaders2 because ncurses is missing \ |
| 16 |
-- see src/examples/libpmemobj/pminvaders/README for details.) |
| 17 |
endif |
| 18 |
|
| 19 |
LIBS = -lpmemobj -lpmem -pthread |
| 20 |
|
| 21 |
ifeq ($(NCURSES),y) |
| 22 |
LIBS += $(shell $(PKG_CONFIG) --libs ncurses) |
| 23 |
endif |
| 24 |
|
| 25 |
include ../../Makefile.inc |
| 26 |
|
| 27 |
pminvaders: pminvaders.o |
| 28 |
pminvaders2: pminvaders2.o |