aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile')
-rw-r--r--src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile b/src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile
new file mode 100644
index 0000000..e9cd818
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile
@@ -0,0 +1,35 @@
1# Makefile for FileToHeader
2Target = FileToHeader
3Sources = main.cpp
4
5# general compiler settings
6CPPFLAGS = -I../../include
7CXXFLAGS = -O3 -ffast-math -Wall
8#CXXFLAGS = -g -Wall
9
10#default target is Linux
11all: all_linux
12
13ifeq ($(HOSTTYPE), x86_64)
14LIBSELECT=64
15endif
16
17# target specific settings
18all_linux clean_linux: SYSTEM=Linux
19all_win32: LDFLAGS = -L../../lib/Win32-gcc
20all_win32 clean_win32: SYSTEM=Win32-gcc
21all_win32 clean_win32: SUF=.exe
22# name of the binary - only valid for targets which set SYSTEM
23DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
24
25all_linux all_win32:
26 $(warning Building...)
27 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
28
29clean: clean_linux clean_win32
30 $(warning Cleaning...)
31
32clean_linux clean_win32:
33 @$(RM) $(DESTPATH)
34
35.PHONY: all all_win32 clean clean_linux clean_win32