box-o-sand/basics/Makefile

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