aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3d970222c3b176e9a9b4965633d8667a407cc29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC      = /usr/bin/g++
CFLAGS  = -Wall -g -std=c++11
LDFLAGS = -lm
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 -df $(BUILDDIR)/$(OUTPUT) *.o