box-o-sand/PracticingCurses/menus/Makefile

32 lines
458 B
Makefile
Raw Normal View History

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 = \
${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
${CC} -o $@ $< ${LIBS}
2009-11-19 00:01:16 +00:00
%.o: ${SRC_DIR}/%.c
${CC} -o $@ -c $<
2009-11-19 00:01:16 +00:00
all: ${EXES}
clean:
@rm -f ${EXES}