aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d7717ce21474534de278cd9cb1fe31dab2d63789 (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
29
30
31
32
33
34
35
36
37
38
CC      = /usr/bin/g++
CFLAGS  = -Wall -g -std=c++11
LDFLAGS = -lm -lcurses
<<<<<<< HEAD
OUTPUT = Engine
BUILDDIR = build
=======
OUTPUT = build/Engine
>>>>>>> dfa4ff6eedef580ba562051434cb02582f086c0c

OBJ = main.o cObject.o cObjectHandler.o cRender.o cInput.o

prog: $(OBJ)
<<<<<<< HEAD
	mkdir -p $(BUILDDIR)
	$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
=======
	mkdir build
	$(CC) $(CFLAGS) -o $(OUTPUT) $(OBJ) $(LDFLAGS)
>>>>>>> dfa4ff6eedef580ba562051434cb02582f086c0c

%.o: %.cpp
	$(CC) $(CFLAGS) -c $<

all:
	make clean
	make

.PHONY: clean

clean:
<<<<<<< HEAD
	rm -f $(BUILDDIR)/$(OUTPUT) *.o
	rmdir $(BUILDDIR)
=======
	rm -f $(OUTPUT) *.o
	rmdir build
>>>>>>> dfa4ff6eedef580ba562051434cb02582f086c0c