diff options
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) |