blob: 86c131d724afcfd51e2ac8df4abf23b448e3a450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
CC = /usr/bin/g++
CFLAGS = -Wall -g -std=c++11
LDFLAGS = -lm -lcurses
OUTPUT = Engine
BUILDDIR = build
OBJ = main.o cObject.o cObjectHandler.o cRender.o cInput.o
debug: $(OBJ)
mkdir -p $(BUILDDIR)
$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
%.o: %.cpp
$(CC) $(CFLAGS) -c $<
all: clean debug
.PHONY: clean
clean:
rm -f $(BUILDDIR)/$(OUTPUT) *.o
rmdir --ignore-fail $(BUILDDIR)
|