diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-15 12:11:57 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-15 12:11:57 -0700 |
commit | e881e80d6b793c2d29e472ae4b65bdf8e4363b87 (patch) | |
tree | ca81576f4da93de1a6571da9fc0aa2d08a3ac497 /rules.mk | |
parent | 66eb918a13b6607cc7bb615350a0e26f3670cd54 (diff) |
feat: testing directory to allow for easier tests of code
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -25,24 +25,19 @@ include $(DIR)/rules.mk # Generic rules %.a: %.o - @echo AR $^ - @$(ARCHIVE) + $(ARCHIVE) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c - @echo CC $^ - @$(COMPILE) + $(COMPILE) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.s - @echo AS $^ - @$(ASSEMBLE) + $(ASSEMBLE) %: %.o - @echo CC $^ - @$(LINK) + $(LINK) $(OBJ_DIR)/%: $(SRC_DIR)/%.c - @echo CC $^ - @$(COMPLNK) + $(COMPLNK) targets: $(LIBS) $(BINS) $(TSTS) @@ -54,4 +49,11 @@ clean: rm -f $(TSTS) install: targets - echo "TODO" + @echo installing executables + @if [ -n "$$BINS" ]; then\ + mv $(BINS) $(BIN_DIR); \ + fi + @echo installing libraries + @if [ -n "$$LIBS" ]; then\ + cp $(LIBS) $(LIB_DIR); \ + fi |