blob: 7bc777476f4d38ab526fa3e0fd784f5b529a87c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
CC = /usr/bin/g++
CFLAGS = -Wall -g -std=c++11 -Werror=missing-prototypes
LDFLAGS =
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
@echo
@echo Building $<
@echo ==============
@echo
$(CC) $(CFLAGS) -c $<
all: clean debug
.PHONY: clean
clean:
rm -df $(BUILDDIR)/$(OUTPUT) *.o
run: debug
./$(BUILDDIR)/$(OUTPUT)
|