From 3b884e3836c70b1a19eb7778308fadbc608b0384 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 20:57:29 +0100 Subject: making hashtable compile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9127ccb..71b147b 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,9 @@ OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) HEADER = $(shell find $(INCLUDE_DIR) -name "*.h") -all: make_build_dirs $(NAME) +all: prebuild $(NAME) -make_build_dirs: +prebuild: @for dir in $$(find $(SRC_DIR)/* $(FIND_ARGS) -type d | \ sed 's_$(SRC_DIR)/_$(OBJ_DIR)/_g'); \ do \ @@ -48,7 +48,7 @@ $(NAME): $(OBJ) $(HEADER) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c @echo "Compiling: $@" - $(CC) $(CCFLAGS) -c -o $@ $< + @$(CC) $(CCFLAGS) -c -o $@ $< clean: @echo "Removing objects" -- cgit