Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. CPPFLAGS = -I../../include -I/usr/X11R6/include
  5. CXXFLAGS = -Wall -O3 -ffast-math
  6. ifeq ($(HOSTTYPE), x86_64)
  7. LIBSELECT=64
  8. endif
  9. all: all_linux
  10. # target specific settings
  11. all_linux: SYSTEM=Linux
  12. all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11
  13. all_win32 clean_win32: SYSTEM=Win32-gcc
  14. all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm
  15. # if you enable sound add the proper library for linking
  16. #LDFLAGS += -lIrrKlang
  17. #LDFLAGS += -laudiere
  18. #LDFLAGS += -lSDL_mixer -lSDL
  19. all_win32 clean_win32: SUF=.exe
  20. # name of the binary - only valid for targets which set SYSTEM
  21. DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
  22. OBJ = $(Sources:.cpp=.o)
  23. all_linux all_win32: $(OBJ)
  24. $(warning Building...)
  25. $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS)
  26. clean: clean_linux clean_win32
  27. $(warning Cleaning...)
  28. @$(RM) $(OBJ)
  29. clean_linux clean_win32:
  30. @$(RM) $(DESTPATH)
  31. .PHONY: all all_win32 clean clean_linux clean_win32