aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
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"