diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-10-27 14:56:10 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-10-27 14:56:10 +0100 |
commit | c8fe29b87b16d347fd127636a5f67ba14d5f7fb1 (patch) | |
tree | a023a987dc847c3de87c7960f535c74364583a58 /Makefile | |
parent | 559dd6032d3b78ca4fe58ae05dae93c1f29ba4eb (diff) | |
download | standardstuff-c8fe29b87b16d347fd127636a5f67ba14d5f7fb1.tar.gz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -12,7 +12,7 @@ OBJS = $(SRCS:.c=.o) OBJ = $(OBJS:$(SOURCEDIR)/%=$(OBJECTDIR)/%) build: dir $(OBJ) - @echo [LD] $(OBJ) + @echo LD $(OBJ) @$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS) debug: CFLAGS += -g -D _DEBUG @@ -23,16 +23,17 @@ dir: @mkdir -p $(BUILDDIR) $(OBJECTDIR)/%.o: $(SOURCEDIR)/%.c - @echo [CC] $< + @echo CC $< @$(CC) $(CFLAGS) -c $< -o $@ .PHONY: clean clean: - @echo [RM] $(OBJ) - @echo [RM] $(BUILDDIR)/$(OUTPUT) + @echo RM $(OBJ) + @echo RM $(BUILDDIR)/$(OUTPUT) @rm -df $(OBJ) @rm -Rdf $(BUILDDIR) $(OBJECTDIR) all: clean build - +run: build + @$(BUILDDIR)/$(OUTPUT) |