From b4ca942918809c28a43371b840c02d40d0dafc14 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 13 Aug 2021 16:29:56 +0000 Subject: [PATCH] Remove unused variables and change .c compilation rule --- template/Makefile | 4 ++-- template/config.mk | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/template/Makefile b/template/Makefile index f68fba1..fd4a163 100644 --- a/template/Makefile +++ b/template/Makefile @@ -40,8 +40,8 @@ OBJ = ${SRC:.c=.o} all: ${OBJ} -.c.o: - ${CC} -c ${CFLAGS} $< +%.o: %.c + ${CC} -c ${CFLAGS} -o $@ $< clean: rm -f ${OBJ} diff --git a/template/config.mk b/template/config.mk index eb0f063..b0c82b8 100644 --- a/template/config.mk +++ b/template/config.mk @@ -1,7 +1,3 @@ VERSION = 0.0 - PREFIX = /usr/local - CC = clang -AR = llvm-ar -RANLIB = llvm-ranlib