diff options
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 25 |
1 files changed, 9 insertions, 16 deletions
@@ -1,7 +1,6 @@ # Standard housekeeping -.PHONY: all debug release clean install +.PHONY: all debug release clean target install .SUFFIXES: -.SUFFIXES: .s .c .o all: targets @@ -18,6 +17,7 @@ DEPS := LIBS := BINS := +TSTS := # Iterate through directory tree DIR := sys @@ -25,40 +25,33 @@ include $(DIR)/rules.mk # Generic rules %.a: %.o - @echo AR $@ $^ + @echo AR $^ @$(ARCHIVE) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c - @echo CC $^ + @echo CC $^ @$(COMPILE) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.s - @echo AS $^ + @echo AS $^ @$(ASSEMBLE) %: %.o - @echo CC $^ + @echo CC $^ @$(LINK) $(OBJ_DIR)/%: $(SRC_DIR)/%.c - @echo CC $^ + @echo CC $^ @$(COMPLNK) -.PHONY: targets -targets: $(LIBS) $(BINS) +targets: $(LIBS) $(BINS) $(TSTS) -.PHONY: database -database: $(LIBS) $(BINS) - gentags - ctags -R sys - -.PHONY: clean clean: rm -f $(OBJS) rm -f $(DEPS) rm -f $(LIBS) rm -f $(BINS) + rm -f $(TSTS) -.PHONY: install install: targets echo "TODO" |