diff --git a/Makefile b/Makefile index d1ebcbf..dcebd2a 100644 --- a/Makefile +++ b/Makefile @@ -7,17 +7,14 @@ OBJ_DIR=obj DESTDIR=/ +.PHONY: all ${TARGET} clean install uninstall + all: ${TARGET} -${TARGET}: ${OBJ_DIR}/main.o - ${CC} ${CFLAGS} $< -o $@ - -${OBJ_DIR}/main.o: ${SRC_DIR}/main.c ${SRC_DIR}/main.h - @mkdir -p ${OBJ_DIR} - ${CC} ${CFLAGS} -c $< -o $@ +${TARGET}: ${SRC_DIR}/main.c ${SRC_DIR}/main.h + ${CC} ${CFLAGS} ${LDFLAGS} $< -o $@ clean: - rm -r ${OBJ_DIR} rm ${TARGET} install: