diff options
Diffstat (limited to 'src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile')
-rw-r--r-- | src/others/irrlicht-1.8.1/tools/FileToHeader/Makefile | 35 |
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 | ||
2 | Target = FileToHeader | ||
3 | Sources = main.cpp | ||
4 | |||
5 | # general compiler settings | ||
6 | CPPFLAGS = -I../../include | ||
7 | CXXFLAGS = -O3 -ffast-math -Wall | ||
8 | #CXXFLAGS = -g -Wall | ||
9 | |||
10 | #default target is Linux | ||
11 | all: all_linux | ||
12 | |||
13 | ifeq ($(HOSTTYPE), x86_64) | ||
14 | LIBSELECT=64 | ||
15 | endif | ||
16 | |||
17 | # target specific settings | ||
18 | all_linux clean_linux: SYSTEM=Linux | ||
19 | all_win32: LDFLAGS = -L../../lib/Win32-gcc | ||
20 | all_win32 clean_win32: SYSTEM=Win32-gcc | ||
21 | all_win32 clean_win32: SUF=.exe | ||
22 | # name of the binary - only valid for targets which set SYSTEM | ||
23 | DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) | ||
24 | |||
25 | all_linux all_win32: | ||
26 | $(warning Building...) | ||
27 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) | ||
28 | |||
29 | clean: clean_linux clean_win32 | ||
30 | $(warning Cleaning...) | ||
31 | |||
32 | clean_linux clean_win32: | ||
33 | @$(RM) $(DESTPATH) | ||
34 | |||
35 | .PHONY: all all_win32 clean clean_linux clean_win32 | ||