mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
don't build strcompat for menuselect except on Solaris
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
Makefile
3
Makefile
@@ -405,6 +405,7 @@ endif
|
|||||||
ifeq ($(OSARCH),SunOS)
|
ifeq ($(OSARCH),SunOS)
|
||||||
LIBS+=-lpthread -ldl -lnsl -lsocket -lresolv -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
|
LIBS+=-lpthread -ldl -lnsl -lsocket -lresolv -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
|
||||||
OBJS+=strcompat.o
|
OBJS+=strcompat.o
|
||||||
|
MENUSELECT_OBJS+=strcompat.o
|
||||||
ASTLINK=
|
ASTLINK=
|
||||||
SOLINK=-shared -fpic -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
|
SOLINK=-shared -fpic -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
|
||||||
endif
|
endif
|
||||||
@@ -999,7 +1000,7 @@ uninstall-all: _uninstall
|
|||||||
menuselect: build_tools/menuselect makeopts.xml
|
menuselect: build_tools/menuselect makeopts.xml
|
||||||
-@build_tools/menuselect ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
|
-@build_tools/menuselect ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
|
||||||
|
|
||||||
build_tools/menuselect: build_tools/menuselect.c build_tools/menuselect_curses.c build_tools/menuselect.h include/autoconfig.h strcompat.o mxml/libmxml.a
|
build_tools/menuselect: build_tools/menuselect.c build_tools/menuselect_curses.c build_tools/menuselect.h include/autoconfig.h mxml/libmxml.a $(MENUSELECT_OBJS)
|
||||||
$(MAKE) -C build_tools menuselect
|
$(MAKE) -C build_tools menuselect
|
||||||
|
|
||||||
mxml/libmxml.a:
|
mxml/libmxml.a:
|
||||||
|
@@ -2,6 +2,10 @@ MENUSELECT_OBJS=menuselect.o menuselect_curses.o
|
|||||||
MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
|
MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
|
||||||
MENUSELECT_LIBS=../mxml/libmxml.a
|
MENUSELECT_LIBS=../mxml/libmxml.a
|
||||||
|
|
||||||
|
ifeq ($(OSARCH),SunOS)
|
||||||
|
MENUSELECT_OBJS+=../strcompat.o
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(NCURSES_LIB),)
|
ifneq ($(NCURSES_LIB),)
|
||||||
MENUSELECT_LIBS+=$(NCURSES_LIB)
|
MENUSELECT_LIBS+=$(NCURSES_LIB)
|
||||||
MENUSELECT_INCLUDE=$(NCURSES_INCLUDE)
|
MENUSELECT_INCLUDE=$(NCURSES_INCLUDE)
|
||||||
@@ -11,7 +15,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
menuselect: $(MENUSELECT_OBJS)
|
menuselect: $(MENUSELECT_OBJS)
|
||||||
$(CC) -g -o $@ ../strcompat.o $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
|
$(CC) -g -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
|
||||||
|
|
||||||
menuselect.o: menuselect.c menuselect.h
|
menuselect.o: menuselect.c menuselect.h
|
||||||
$(CC) -o $@ $(MENUSELECT_CFLAGS) $<
|
$(CC) -o $@ $(MENUSELECT_CFLAGS) $<
|
||||||
|
Reference in New Issue
Block a user