aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8663715..86c131d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,19 +6,17 @@ BUILDDIR = build
OBJ = main.o cObject.o cObjectHandler.o cRender.o cInput.o
-prog: $(OBJ)
+debug: $(OBJ)
mkdir -p $(BUILDDIR)
$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
%.o: %.cpp
$(CC) $(CFLAGS) -c $<
-all:
- make clean
- make
+all: clean debug
.PHONY: clean
clean:
rm -f $(BUILDDIR)/$(OUTPUT) *.o
- rmdir $(BUILDDIR)
+ rmdir --ignore-fail $(BUILDDIR)