Makefile: compilation now works as expected.
This commit is contained in:
parent
9aa63b19cb
commit
9a241bb8ba
@ -12,7 +12,7 @@ TESTS=$(addsuffix .test, $(patsubst %.c,%,$(CFILES)))
|
|||||||
all: $(BINDIR) $(EXEC)
|
all: $(BINDIR) $(EXEC)
|
||||||
|
|
||||||
$(BINDIR):; -mkdir -p $(BINDIR)
|
$(BINDIR):; -mkdir -p $(BINDIR)
|
||||||
$(EXEC): $(CFILES); $(CC) $(LDFLAGS) $< -o $@
|
$(EXEC): $(CFILES); $(CC) $(LDFLAGS) `basename $@`.c -o $@
|
||||||
clean:; @-rm $(EXEC)
|
clean:; @-rm $(EXEC)
|
||||||
|
|
||||||
# to test a binary "prog" : make prog.test
|
# to test a binary "prog" : make prog.test
|
||||||
|
Loading…
Reference in New Issue
Block a user