Makefile: compilation now works as expected.

This commit is contained in:
Philippe Pittoli 2024-12-21 08:13:36 +01:00
parent 9aa63b19cb
commit 9a241bb8ba

View File

@ -12,7 +12,7 @@ TESTS=$(addsuffix .test, $(patsubst %.c,%,$(CFILES)))
all: $(BINDIR) $(EXEC)
$(BINDIR):; -mkdir -p $(BINDIR)
$(EXEC): $(CFILES); $(CC) $(LDFLAGS) $< -o $@
$(EXEC): $(CFILES); $(CC) $(LDFLAGS) `basename $@`.c -o $@
clean:; @-rm $(EXEC)
# to test a binary "prog" : make prog.test