aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-10-27 14:56:10 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-10-27 14:56:10 +0100
commitc8fe29b87b16d347fd127636a5f67ba14d5f7fb1 (patch)
treea023a987dc847c3de87c7960f535c74364583a58 /Makefile
parent559dd6032d3b78ca4fe58ae05dae93c1f29ba4eb (diff)
downloadstandardstuff-c8fe29b87b16d347fd127636a5f67ba14d5f7fb1.tar.gz
MakefileHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9b8d35a..3c18490 100644
--- a/Makefile
+++ b/Makefile
@@ -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)