aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)