box-o-sand/PracticingCurses/basics/Makefile

36 lines
583 B
Makefile
Raw Normal View History

2009-11-19 00:01:16 +00:00
# Makefile for JustForFun Files
# A few variables
CC=gcc
LIBS=-lncurses
SRC_DIR=.
EXE_DIR=../demo/exe
EXES = \
${EXE_DIR}/hello_world \
${EXE_DIR}/init_func_example \
${EXE_DIR}/key_code \
${EXE_DIR}/mouse_menu \
${EXE_DIR}/other_border \
${EXE_DIR}/printw_example \
${EXE_DIR}/scanw_example \
${EXE_DIR}/simple_attr \
${EXE_DIR}/simple_color \
${EXE_DIR}/simple_key \
${EXE_DIR}/temp_leave \
${EXE_DIR}/win_border \
${EXE_DIR}/with_chgat
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}