summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-13 21:00:07 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-13 21:00:07 -0600
commitd21a7de801b4a326001e45c0d26826e9ab53589b (patch)
tree314c35f77473b651f4a2f79395769595ddb9dd6c /Makefile
parentcae58e90e0a2f19aa9a01177ef1707904f22c64c (diff)
downloadcmath-d21a7de801b4a326001e45c0d26826e9ab53589b.tar.gz
cmath-d21a7de801b4a326001e45c0d26826e9ab53589b.zip
hw 4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 176e8cd..aed2e52 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ all: $(TEST_EXE)
$(TEST_EXE): $(BIN_DIR) | $(LIBRARY)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(TEST_SRC) $(LIBRARY) -o $@
-$(LIBRARY): $(OBJ)
+$(LIBRARY): $(OBJ) | $(LIB_DIR)
ar rcs $(LIBRARY) $(OBJ_DIR)/*.o
ranlib $(LIBRARY)
@@ -32,6 +32,6 @@ $(BIN_DIR) $(OBJ_DIR) $(LIB_DIR):
mkdir -p $@
clean:
- @$(RM) -r $(BIN_DIR) $(OBJ_DIR)
+ @$(RM) -r $(BIN_DIR) $(OBJ_DIR) $(LIB_DIR)
-include $(OBJ:.o=.d)