aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/Makefile')
-rw-r--r--build_tools/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/build_tools/Makefile b/build_tools/Makefile
new file mode 100644
index 000000000..77190315a
--- /dev/null
+++ b/build_tools/Makefile
@@ -0,0 +1,18 @@
+MENUSELECT_OBJS=menuselect.o menuselect_curses.o
+MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
+MENUSELECT_LIBS=../mxml/libmxml.a $(CURSES_LIB)
+
+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) $(CURSES_INCLUDE) $<
+
+clean:
+ rm -f menuselect *.o
+
+dist-clean: clean
+ rm -f menuselect-deps