summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-05-23 17:19:44 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2023-05-23 17:19:44 +0600
commit413e443613499a53cc4aa1f35664c289ffbde04b (patch)
tree37deab8142fd80ab9ef17bb970d2beef5e53796d /Makefile
parent5942f6125ea85bc78fc3df7b2f72b41260f4b4a2 (diff)
downloadc-obp-example-413e443613499a53cc4aa1f35664c289ffbde04b.tar.gz
c-obp-example-413e443613499a53cc4aa1f35664c289ffbde04b.zip
Add new operators
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4fb7a1c..bffc51c 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ endif
all: obj/$(BINARY)
obj/$(BINARY): $(<<objects>>)
- $(<<) "LINK\t" $(^:obj/%=%)
+ $(<<) " LD\t"-o $(@) $(LDFLAGS)"\t"$(^:obj/%=%)
@$(CC) $(^) -o $(@) $(LDFLAGS)
clean: clean-objs clean-tests
@@ -62,7 +62,7 @@ clean-objs:
test: $(<<results>>)
obj/%.o: src/%.c
- $(<<) " CC\t" $(<:src/%=%)
+ $(<<) " CC\t"$(CFLAGS)"\t"$(<:src/%=%)
@mkdir -p $(shell dirname $(@))
@$(CC) -c $(<) -o $(@) $(CFLAGS)