diff options
Diffstat (limited to 'src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile')
-rw-r--r-- | src/others/irrlicht-1.8.1/tools/GUIEditor/Makefile | 43 |
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 | ||
2 | Target = GUIEditor | ||
3 | Sources = CGUIAttributeEditor.cpp CGUIEditFactory.cpp CGUIEditWindow.cpp CGUIEditWorkspace.cpp CGUIPanel.cpp CGUITextureCacheBrowser.cpp CMemoryReadWriteFile.cpp main.cpp | ||
4 | |||
5 | CPPFLAGS = -I../../include -I/usr/X11R6/include | ||
6 | CXXFLAGS = -Wall -O3 -ffast-math | ||
7 | |||
8 | ifeq ($(HOSTTYPE), x86_64) | ||
9 | LIBSELECT=64 | ||
10 | endif | ||
11 | |||
12 | all: all_linux | ||
13 | |||
14 | # target specific settings | ||
15 | all_linux: SYSTEM=Linux | ||
16 | all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11 | ||
17 | |||
18 | all_win32 clean_win32: SYSTEM=Win32-gcc | ||
19 | all_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 | |||
26 | all_win32 clean_win32: SUF=.exe | ||
27 | # name of the binary - only valid for targets which set SYSTEM | ||
28 | DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) | ||
29 | |||
30 | OBJ = $(Sources:.cpp=.o) | ||
31 | |||
32 | all_linux all_win32: $(OBJ) | ||
33 | $(warning Building...) | ||
34 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS) | ||
35 | |||
36 | clean: clean_linux clean_win32 | ||
37 | $(warning Cleaning...) | ||
38 | @$(RM) $(OBJ) | ||
39 | |||
40 | clean_linux clean_win32: | ||
41 | @$(RM) $(DESTPATH) | ||
42 | |||
43 | .PHONY: all all_win32 clean clean_linux clean_win32 | ||