-
Notifications
You must be signed in to change notification settings - Fork 1
/
MakeConfigure
50 lines (38 loc) · 1.24 KB
/
MakeConfigure
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
39
40
41
42
43
44
45
46
47
48
49
50
# ------------------------------------------------------------------------------------------#
# THIS MAKEFILE IS PART OF IRRGAME. #
# #
# Author: Henri Keeble #
# Date Created: 4/4/2014 #
# Usage: Use this configuration file to configure the makefile for your build #
# environment. #
#-------------------------------------------------------------------------------------------#
# COMPILER
CC=g++
# COMPILER FLAGS
CCFLAGS=-std=c++11
# SOURCE AND INTERMEDIATE DIRECTORIES
SRC_DIR=src/
INT_DIR=intermediate/
# DIRECTORY TO USE FOR TARGET
TRG_DIR=$(MAKECMDGOALS)
# EXECUTABLE NAME
EXEC=IrrGame
# LIBRARY PATHS
IRRLICHT_HOME=../../Engines/irrlicht-1.8.1
# LIBRARY DEPENDENCIES
LIB_DIRS=-Llib/
LIBS=-lIrrlicht -lGL -lXcursor -lXxf86vm -lX11
# INCLUDE DIRECTORIES
INCL_DIR=-Iinclude/ -I$(IRRLICHT_HOME)/include/
# DETECT PREPROCESSOR DEFINITIONS
ifeq ($(TRG_DIR), debug)
PRP_DIR = -D_DEBUG -DUNIX
else
PRP_DIR = -DNDEBUG -DUNIX
endif
# COPY TARGET NAME
COPY_DATA=copydata
BLD_DIR=build/unix/$(TRG_DIR)
INT_DIR=obj/unix/$(TRG_DIR)
# OBJECTS - CONSTRUCT THESE FROM CPP FILES IN SRC
OBJECTS=$(subst $(SRC_DIR), $(INT_DIR), $(patsubst %.cpp,%.o,$(wildcard $(SRC_DIR)/*.cpp)))