Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf...
[asterisk/asterisk.git] / build_tools / Makefile
1 MENUSELECT_OBJS=menuselect.o menuselect_curses.o
2 MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
3 MENUSELECT_LIBS=../mxml/libmxml.a $(CURSES_LIB)
4
5 menuselect: $(MENUSELECT_OBJS)
6         $(CC) -g -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
7
8 menuselect.o: menuselect.c menuselect.h
9         $(CC) -o $@ $(MENUSELECT_CFLAGS) $<
10
11 menuselect_curses.o: menuselect_curses.c menuselect.h
12         $(CC) -o $@ $(MENUSELECT_CFLAGS) $(CURSES_INCLUDE) $<
13
14 clean:
15         rm -f menuselect *.o
16
17 dist-clean: clean
18         rm -f menuselect-deps