aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile')
-rw-r--r--src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile b/src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile
new file mode 100644
index 0000000..02f8189
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile
@@ -0,0 +1,43 @@
1# Irrlicht Engine GUIEditor Makefile
2Target = GUIEditor
3Sources = CGUIAttributeEditor.cpp CGUIEditFactory.cpp CGUIEditWindow.cpp CGUIEditWorkspace.cpp CGUIPanel.cpp CGUITextureCacheBrowser.cpp CMemoryReadWriteFile.cpp main.cpp
4
5CPPFLAGS = -I../../include -I/usr/X11R6/include
6CXXFLAGS = -Wall -O3 -ffast-math
7
8ifeq ($(HOSTTYPE), x86_64)
9LIBSELECT=64
10endif
11
12all: all_linux
13
14# target specific settings
15all_linux: SYSTEM=Linux
16all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11
17
18all_win32 clean_win32: SYSTEM=Win32-gcc
19all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm
20
21# if you enable sound add the proper library for linking
22#LDFLAGS += -lIrrKlang
23#LDFLAGS += -laudiere
24#LDFLAGS += -lSDL_mixer -lSDL
25
26all_win32 clean_win32: SUF=.exe
27# name of the binary - only valid for targets which set SYSTEM
28DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
29
30OBJ = $(Sources:.cpp=.o)
31
32all_linux all_win32: $(OBJ)
33 $(warning Building...)
34 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS)
35
36clean: clean_linux clean_win32
37 $(warning Cleaning...)
38 @$(RM) $(OBJ)
39
40clean_linux clean_win32:
41 @$(RM) $(DESTPATH)
42
43.PHONY: all all_win32 clean clean_linux clean_win32