mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 21:19:09 +00:00
with curses. So, check for both and use whatever is found git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
27 lines
688 B
Makefile
27 lines
688 B
Makefile
MENUSELECT_OBJS=menuselect.o menuselect_curses.o ../strcompat.o
|
|
MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
|
|
MENUSELECT_LIBS=../mxml/libmxml.a
|
|
|
|
ifneq ($(NCURSES_LIB),)
|
|
MENUSELECT_LIBS+=$(NCURSES_LIB)
|
|
MENUSELECT_INCLUDE=$(NCURSES_INCLUDE)
|
|
else
|
|
MENUSELECT_LIBS+=$(CURSES_LIB)
|
|
MENUSELECT_INCLUDE=$(CURSES_INCLUDE)
|
|
endif
|
|
|
|
menuselect: $(MENUSELECT_OBJS)
|
|
$(CC) -g -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
|
|
|
|
menuselect.o: menuselect.c menuselect.h
|
|
$(CC) -o $@ $(MENUSELECT_CFLAGS) $<
|
|
|
|
menuselect_curses.o: menuselect_curses.c menuselect.h
|
|
$(CC) -o $@ $(MENUSELECT_CFLAGS) $(MENUSELECT_INCLUDE) $<
|
|
|
|
clean:
|
|
rm -f menuselect *.o
|
|
|
|
dist-clean: clean
|
|
rm -f menuselect-deps
|