36 lines
628 B
Makefile
36 lines
628 B
Makefile
# 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
|
|
|
|
${EXE_DIR}/%: %.o
|
|
${CC} -o $@ $< ${LIBS}
|
|
|
|
%.o: ${SRC_DIR}/%.c
|
|
${CC} -o $@ -c $<
|
|
|
|
all: ${EXES}
|
|
|
|
clean:
|
|
@rm -f ${EXES}
|