2009-11-19 00:01:16 +00:00
|
|
|
# Makefile for JustForFun Files
|
|
|
|
|
|
|
|
# A few variables
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
LIBS=-lmenu -lncurses
|
|
|
|
|
|
|
|
SRC_DIR=.
|
|
|
|
EXE_DIR=../demo/exe
|
|
|
|
|
|
|
|
EXES = \
|
2009-11-19 00:37:27 +00:00
|
|
|
${EXE_DIR}/menu_attrib\
|
|
|
|
${EXE_DIR}/menu_item_data\
|
|
|
|
${EXE_DIR}/menu_multi_column \
|
|
|
|
${EXE_DIR}/menu_scroll \
|
|
|
|
${EXE_DIR}/menu_simple \
|
|
|
|
${EXE_DIR}/menu_toggle \
|
|
|
|
${EXE_DIR}/menu_userptr \
|
|
|
|
${EXE_DIR}/menu_win
|
2009-11-19 00:01:16 +00:00
|
|
|
|
|
|
|
${EXE_DIR}/%: %.o
|
2009-11-19 00:37:27 +00:00
|
|
|
${CC} -o $@ $< ${LIBS}
|
2009-11-19 00:01:16 +00:00
|
|
|
|
|
|
|
%.o: ${SRC_DIR}/%.c
|
2009-11-19 00:37:27 +00:00
|
|
|
${CC} -o $@ -c $<
|
2009-11-19 00:01:16 +00:00
|
|
|
|
|
|
|
all: ${EXES}
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2009-11-19 00:37:27 +00:00
|
|
|
@rm -f ${EXES}
|