blob: 0825cd6cc7fa132cfdd7f88e6ec52ab8e64b25ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
|