aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-13 17:30:19 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-13 17:30:19 -0700
commitd982e7c2fdebf560ccce193cb98b85d4fac28a45 (patch)
treeb18902eea12a2d55a24994ca0681ca1a369631aa /rules.mk
parentc9d4b2d7dd1d9a46571e5d2b2cf6ce10a9d9ebea (diff)
blas 1 generation code complete
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk17
1 files changed, 11 insertions, 6 deletions
diff --git a/rules.mk b/rules.mk
index 7fc6a1f..ce74da2 100644
--- a/rules.mk
+++ b/rules.mk
@@ -8,7 +8,7 @@ all: targets
debug: CFLAGS += -DDEBUG
debug: targets
-release: CFLAGS += -DNDEBUG -O3
+release: CFLAGS += -O3 -flto #-DNDEBUG
release: targets
# Targets & array of sources & intermediates
@@ -25,19 +25,24 @@ include $(DIR)/rules.mk
# Generic rules
%.a: %.o
- $(ARCHIVE)
+ @echo AR $@ $^
+ @$(ARCHIVE)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
- $(COMPILE)
+ @echo CC $^
+ @$(COMPILE)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.s
- $(ASSEMBLE)
+ @echo AS $^
+ @$(ASSEMBLE)
%: %.o
- $(LINK)
+ @echo CC $^
+ @$(LINK)
$(OBJ_DIR)/%: $(SRC_DIR)/%.c
- $(COMPLNK)
+ @echo CC $^
+ @$(COMPLNK)
.PHONY: targets
targets: $(LIBS) $(BINS)