box-o-sand/PracticingCurses/JustForFun/Makefile

29 lines
355 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}/hanoi \
${EXE_DIR}/life\
${EXE_DIR}/magic \
${EXE_DIR}/queens \
${EXE_DIR}/shuffle \
${EXE_DIR}/tt
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}