buildsystem,ide,epj2make; sorted out platform variables and uses. now using HOST_PLAT...
[sdk] / ecere / Makefile
index 0bd8ef6..bb06f10 100644 (file)
@@ -11,11 +11,17 @@ OBJ = obj/$(CONFIG).$(PLATFORM)/
 
 RES = res/
 
+ifndef DEBIAN_PACKAGE
+CFLAGS =
+endif
+OFLAGS =
+
 # CROSS-PLATFORM MAGIC
 
+include ../crossplatform.mk
 include ../include.mk
 
-ifdef LINUX
+ifdef LINUX_TARGET
 TARGET = obj/$(CONFIG).$(PLATFORM)/$(LP)$(MODULE)$(SO).0.44
 SONAME = -Wl,-soname,libecere.so.0
 else
@@ -24,220 +30,810 @@ SONAME =
 endif
 
 OBJECTS = $(OBJECTS1) $(OBJECTS2) $(OBJECTS3) $(OBJECTS4)
-OBJECTS1 = $(OBJ)Archive.o $(OBJ)BufferedFile.o $(OBJ)Date.o $(OBJ)DualPipe.o \
-       $(OBJ)EARArchive.o $(OBJ)File.o $(OBJ)FileMonitor.o $(OBJ)GlobalAppSettings.o $(OBJ)JSON.o \
-       $(OBJ)JSONGlobalSettings.o $(OBJ)memory.o $(OBJ)Mutex.o $(OBJ)Semaphore.o $(OBJ)System.o $(OBJ)TempFile.o \
-       $(OBJ)Thread.o $(OBJ)Time.o $(OBJ)unicode.o $(OBJ)units.o $(OBJ)File.c.o $(OBJ)DualPipe.c.o \
-       $(OBJ)System.c.o $(OBJ)Cube.o $(OBJ)SkyBox.o $(OBJ)Sphere.o $(OBJ)Object3DSFormat.o \
-       $(OBJ)Camera.o $(OBJ)Matrix.o $(OBJ)Mesh.o $(OBJ)Object.o $(OBJ)Plane.o $(OBJ)Quaternion.o \
-       $(OBJ)Vector3D.o $(OBJ)BMPFormat.o $(OBJ)GIFFormat.o $(OBJ)JPEGFormat.o $(OBJ)PCXFormat.o \
-       $(OBJ)PNGFormat.o $(OBJ)RGBFormat.o $(OBJ)harfbuzz-arabic.o $(OBJ)harfbuzz-buffer.o \
-       $(OBJ)harfbuzz-gdef.o $(OBJ)harfbuzz-global.o $(OBJ)harfbuzz-gpos.o $(OBJ)harfbuzz-gsub.o \
-       $(OBJ)harfbuzz-hangul.o $(OBJ)harfbuzz-hebrew.o $(OBJ)harfbuzz-indic.o $(OBJ)harfbuzz-khmer.o
-OBJECTS2 = $(OBJ)harfbuzz-myanmar.o $(OBJ)harfbuzz-open.o $(OBJ)harfbuzz-shaper.o \
-       $(OBJ)harfbuzz-stream.o $(OBJ)harfbuzz-tibetan.o $(if $(WINDOWS),$(OBJ)Direct3D8DisplayDriver.o,) \
-       $(if $(WINDOWS),$(OBJ)Direct3D9DisplayDriver.o,) $(if $(WINDOWS),$(OBJ)DirectDrawDisplayDriver.o,) \
-       $(if $(WINDOWS),$(OBJ)GDIDisplayDriver.o,) $(OBJ)lfbBlit.o $(OBJ)lfbConvert.o $(OBJ)LFBDisplayDriver.o \
-       $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesDisplayDriver.o,) $(OBJ)OpenGLDisplayDriver.o \
-       $(if $(WINDOWS),$(OBJ)Win32BitmapPrinterDisplayDriver.o,) $(if $(WINDOWS),$(OBJ)Win32ConsoleDisplayDriver.o,) \
-       $(if $(WINDOWS),$(OBJ)Win32PrinterDisplayDriver.o,) $(if $(LINUX),$(OBJ)XDisplayDriver.o,) $(OBJ)Bitmap.o $(OBJ)BitmapResource.o \
-       $(OBJ)Color.o $(OBJ)Display.o $(OBJ)DisplaySystem.o $(OBJ)FontResource.o $(OBJ)Resource.o \
-       $(OBJ)Surface.o $(OBJ)Button.o $(OBJ)CalendarControl.o $(OBJ)DataBox.o $(OBJ)DropBox.o \
-       $(OBJ)EditBox.o $(OBJ)Label.o $(OBJ)ListBox.o $(OBJ)Menu.o $(OBJ)Picture.o $(OBJ)ProgressBar.o \
-       $(OBJ)ScrollBar.o $(OBJ)StatusBar.o
-OBJECTS3 = $(OBJ)TabControl.o $(OBJ)PaneSplitter.o $(OBJ)Stacker.o $(OBJ)PathBox.o \
-       $(OBJ)ColorPicker.o $(OBJ)FileDialog.o $(OBJ)FindDialog.o $(OBJ)GoToDialog.o $(OBJ)MessageBox.o \
-       $(OBJ)ReplaceDialog.o $(OBJ)WindowList.o $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesInterface.o,) \
-       $(if $(WINDOWS),$(OBJ)Win32Interface.o,) $(if $(WINDOWS),$(OBJ)Win32ConsoleInterface.o,) \
-       $(if $(or $(LINUX),$(OSX)),$(OBJ)XInterface.o,) $(OBJ)TVisionSkin.o $(OBJ)WindowsSkin.o $(OBJ)Anchor.o $(OBJ)ClipBoard.o \
-       $(OBJ)Cursor.o $(OBJ)Desktop3D.o $(OBJ)FormDesigner.o $(OBJ)GuiApplication.o \
-       $(OBJ)Interface.o $(OBJ)Key.o $(OBJ)Skin.o $(OBJ)Timer.o $(OBJ)typeEdit.o $(OBJ)Window.o \
-       $(OBJ)dcom.o $(OBJ)HTTPFile.o $(OBJ)network.o $(OBJ)NetworkClientFile.o $(OBJ)Service.o \
-       $(OBJ)Socket.o $(OBJ)Array.o $(OBJ)AVLTree.o $(OBJ)BuiltInContainer.o $(OBJ)Container.o \
-       $(OBJ)CustomAVLTree.o $(OBJ)LinkList.o $(OBJ)List.o $(OBJ)Map.o $(OBJ)BinaryTree.o $(OBJ)BTNode.o
-OBJECTS4 = $(OBJ)dataTypes.o $(OBJ)instance.o $(OBJ)String.o $(OBJ)OldList.o \
-       $(OBJ)instance.c.o $(OBJ)$(MODULE).main$(O)
+OBJECTS1 = \
+       $(OBJ)Archive.o \
+       $(OBJ)BufferedFile.o \
+       $(OBJ)Date.o \
+       $(OBJ)DualPipe.o \
+       $(OBJ)EARArchive.o \
+       $(OBJ)File.o \
+       $(OBJ)FileMonitor.o \
+       $(OBJ)GlobalAppSettings.o \
+       $(OBJ)JSON.o \
+       $(OBJ)JSONGlobalSettings.o \
+       $(OBJ)memory.o \
+       $(OBJ)Mutex.o \
+       $(OBJ)Semaphore.o \
+       $(OBJ)System.o \
+       $(OBJ)TempFile.o \
+       $(OBJ)Thread.o \
+       $(OBJ)Time.o \
+       $(OBJ)unicode.o \
+       $(OBJ)units.o \
+       $(OBJ)File.c.o \
+       $(OBJ)DualPipe.c.o \
+       $(OBJ)System.c.o \
+       $(OBJ)i18n.o \
+       $(OBJ)Cube.o \
+       $(OBJ)SkyBox.o \
+       $(OBJ)Sphere.o \
+       $(OBJ)Object3DSFormat.o \
+       $(OBJ)Camera.o \
+       $(OBJ)Matrix.o \
+       $(OBJ)Mesh.o \
+       $(OBJ)Object.o \
+       $(OBJ)Plane.o \
+       $(OBJ)Quaternion.o \
+       $(OBJ)Vector3D.o \
+       $(OBJ)BMPFormat.o \
+       $(OBJ)GIFFormat.o \
+       $(OBJ)JPEGFormat.o \
+       $(OBJ)PCXFormat.o \
+       $(OBJ)PNGFormat.o \
+       $(OBJ)RGBFormat.o \
+       $(OBJ)harfbuzz-freetype.o \
+       $(OBJ)harfbuzz-unicode-tables.o \
+       $(OBJ)harfbuzz-unicode.o \
+       $(OBJ)harfbuzz-arabic.o \
+       $(OBJ)harfbuzz-buffer.o \
+       $(OBJ)harfbuzz-gdef.o \
+       $(OBJ)harfbuzz-gpos.o \
+       $(OBJ)harfbuzz-gsub.o \
+       $(OBJ)harfbuzz-hangul.o
+OBJECTS2 = \
+       $(OBJ)harfbuzz-hebrew.o \
+       $(OBJ)harfbuzz-indic.o \
+       $(OBJ)harfbuzz-khmer.o \
+       $(OBJ)harfbuzz-myanmar.o \
+       $(OBJ)harfbuzz-open.o \
+       $(OBJ)harfbuzz-shaper.o \
+       $(OBJ)harfbuzz-stream.o \
+       $(OBJ)harfbuzz-tibetan.o \
+       $(OBJ)harfbuzz-impl.o \
+       $(OBJ)harfbuzz-thai.o \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D8DisplayDriver.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D9DisplayDriver.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)DirectDrawDisplayDriver.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)GDIDisplayDriver.o,) \
+       $(OBJ)lfbBlit.o \
+       $(OBJ)lfbConvert.o \
+       $(OBJ)LFBDisplayDriver.o \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesDisplayDriver.o,) \
+       $(if $(OSX_TARGET),,$(OBJ)OpenGLDisplayDriver.o) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32BitmapPrinterDisplayDriver.o,) \
+       $(if $(OSX),$(OBJ)CocoaOpenGLDisplayDriver.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleDisplayDriver.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32PrinterDisplayDriver.o,) \
+       $(if $(LINUX_TARGET),$(OBJ)XDisplayDriver.o,) \
+       $(OBJ)Bitmap.o \
+       $(OBJ)BitmapResource.o \
+       $(OBJ)Color.o \
+       $(OBJ)Display.o \
+       $(OBJ)DisplaySystem.o \
+       $(OBJ)FontResource.o \
+       $(OBJ)Resource.o \
+       $(OBJ)Surface.o \
+       $(OBJ)Button.o \
+       $(OBJ)CalendarControl.o \
+       $(OBJ)DataBox.o
+OBJECTS3 = \
+       $(OBJ)DropBox.o \
+       $(OBJ)EditBox.o \
+       $(OBJ)Label.o \
+       $(OBJ)ListBox.o \
+       $(OBJ)Menu.o \
+       $(OBJ)Picture.o \
+       $(OBJ)ProgressBar.o \
+       $(OBJ)ScrollBar.o \
+       $(OBJ)StatusBar.o \
+       $(OBJ)TabControl.o \
+       $(OBJ)PaneSplitter.o \
+       $(OBJ)Stacker.o \
+       $(OBJ)PathBox.o \
+       $(OBJ)ToolTip.o \
+       $(OBJ)SelectorBar.o \
+       $(OBJ)ColorPicker.o \
+       $(OBJ)FileDialog.o \
+       $(OBJ)FindDialog.o \
+       $(OBJ)GoToDialog.o \
+       $(OBJ)MessageBox.o \
+       $(OBJ)ReplaceDialog.o \
+       $(OBJ)WindowList.o \
+       $(if $(OSX_TARGET),$(OBJ)CocoaDispatch.o,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaEcereBridge.o,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaInterface.o,) \
+       $(if $(OSX_TARGET),$(OBJ)EcereView.o,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesInterface.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32Interface.o,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleInterface.o,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)XInterface.o,) \
+       $(OBJ)TVisionSkin.o \
+       $(OBJ)WindowsSkin.o \
+       $(OBJ)Anchor.o \
+       $(OBJ)ClipBoard.o \
+       $(OBJ)Cursor.o \
+       $(OBJ)Desktop3D.o \
+       $(OBJ)FormDesigner.o \
+       $(OBJ)GuiApplication.o \
+       $(OBJ)Interface.o \
+       $(OBJ)Key.o \
+       $(OBJ)Skin.o \
+       $(OBJ)Timer.o
+OBJECTS4 = \
+       $(OBJ)typeEdit.o \
+       $(OBJ)Window.o \
+       $(OBJ)dcom.o \
+       $(OBJ)HTTPFile.o \
+       $(OBJ)network.o \
+       $(OBJ)NetworkClientFile.o \
+       $(OBJ)Service.o \
+       $(OBJ)Socket.o \
+       $(OBJ)Array.o \
+       $(OBJ)AVLTree.o \
+       $(OBJ)BuiltInContainer.o \
+       $(OBJ)Container.o \
+       $(OBJ)CustomAVLTree.o \
+       $(OBJ)LinkList.o \
+       $(OBJ)List.o \
+       $(OBJ)Map.o \
+       $(OBJ)BinaryTree.o \
+       $(OBJ)BTNode.o \
+       $(OBJ)dataTypes.o \
+       $(OBJ)instance.o \
+       $(OBJ)String.o \
+       $(OBJ)OldList.o \
+       $(OBJ)instance.c.o \
+       $(OBJ)$(MODULE).main$(O)
 
 COBJECTS = $(COBJECTS1) $(COBJECTS2) $(COBJECTS3)
-COBJECTS1 = $(OBJ)Archive.c $(OBJ)BufferedFile.c $(OBJ)Date.c $(OBJ)DualPipe.c \
-       $(OBJ)EARArchive.c $(OBJ)File.c $(OBJ)FileMonitor.c $(OBJ)GlobalAppSettings.c $(OBJ)JSON.c \
-       $(OBJ)JSONGlobalSettings.c $(OBJ)memory.c $(OBJ)Mutex.c $(OBJ)Semaphore.c $(OBJ)System.c $(OBJ)TempFile.c \
-       $(OBJ)Thread.c $(OBJ)Time.c $(OBJ)unicode.c $(OBJ)units.c $(OBJ)Cube.c $(OBJ)SkyBox.c \
-       $(OBJ)Sphere.c $(OBJ)Object3DSFormat.c $(OBJ)Camera.c $(OBJ)Matrix.c $(OBJ)Mesh.c \
-       $(OBJ)Object.c $(OBJ)Plane.c $(OBJ)Quaternion.c $(OBJ)Vector3D.c $(OBJ)BMPFormat.c \
-       $(OBJ)GIFFormat.c $(OBJ)JPEGFormat.c $(OBJ)PCXFormat.c $(OBJ)PNGFormat.c $(OBJ)RGBFormat.c \
-       $(if $(WINDOWS),$(OBJ)Direct3D8DisplayDriver.c,) $(if $(WINDOWS),$(OBJ)Direct3D9DisplayDriver.c,) \
-       $(if $(WINDOWS),$(OBJ)DirectDrawDisplayDriver.c,) $(if $(WINDOWS),$(OBJ)GDIDisplayDriver.c,) $(OBJ)lfbBlit.c $(OBJ)lfbConvert.c \
-       $(OBJ)LFBDisplayDriver.c $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesDisplayDriver.c,) \
-       $(OBJ)OpenGLDisplayDriver.c
-COBJECTS2 = $(if $(WINDOWS),$(OBJ)Win32BitmapPrinterDisplayDriver.c,) \
-       $(if $(WINDOWS),$(OBJ)Win32ConsoleDisplayDriver.c,) $(if $(WINDOWS),$(OBJ)Win32PrinterDisplayDriver.c,) \
-       $(if $(LINUX),$(OBJ)XDisplayDriver.c,) $(OBJ)Bitmap.c $(OBJ)BitmapResource.c $(OBJ)Color.c $(OBJ)Display.c \
-       $(OBJ)DisplaySystem.c $(OBJ)FontResource.c $(OBJ)Resource.c $(OBJ)Surface.c $(OBJ)Button.c \
-       $(OBJ)CalendarControl.c $(OBJ)DataBox.c $(OBJ)DropBox.c $(OBJ)EditBox.c $(OBJ)Label.c $(OBJ)ListBox.c \
-       $(OBJ)Menu.c $(OBJ)Picture.c $(OBJ)ProgressBar.c $(OBJ)ScrollBar.c $(OBJ)StatusBar.c \
-       $(OBJ)TabControl.c $(OBJ)PaneSplitter.c $(OBJ)Stacker.c $(OBJ)PathBox.c $(OBJ)ColorPicker.c \
-       $(OBJ)FileDialog.c $(OBJ)FindDialog.c $(OBJ)GoToDialog.c $(OBJ)MessageBox.c $(OBJ)ReplaceDialog.c \
-       $(OBJ)WindowList.c $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesInterface.c,) \
-       $(if $(WINDOWS),$(OBJ)Win32Interface.c,) $(if $(WINDOWS),$(OBJ)Win32ConsoleInterface.c,) \
-       $(if $(or $(LINUX),$(OSX)),$(OBJ)XInterface.c,)
-COBJECTS3 = $(OBJ)TVisionSkin.c $(OBJ)WindowsSkin.c $(OBJ)Anchor.c $(OBJ)ClipBoard.c \
-       $(OBJ)Cursor.c $(OBJ)Desktop3D.c $(OBJ)FormDesigner.c $(OBJ)GuiApplication.c \
-       $(OBJ)Interface.c $(OBJ)Key.c $(OBJ)Skin.c $(OBJ)Timer.c $(OBJ)typeEdit.c $(OBJ)Window.c \
-       $(OBJ)dcom.c $(OBJ)HTTPFile.c $(OBJ)network.c $(OBJ)NetworkClientFile.c $(OBJ)Service.c \
-       $(OBJ)Socket.c $(OBJ)Array.c $(OBJ)AVLTree.c $(OBJ)BuiltInContainer.c $(OBJ)Container.c \
-       $(OBJ)CustomAVLTree.c $(OBJ)LinkList.c $(OBJ)List.c $(OBJ)Map.c $(OBJ)BinaryTree.c $(OBJ)BTNode.c \
-       $(OBJ)dataTypes.c $(OBJ)instance.c $(OBJ)String.c $(OBJ)OldList.c
-
-SYMBOLS = $(SYMBOLS1) $(SYMBOLS2) $(SYMBOLS3)
-SYMBOLS1 = $(OBJ)Archive.sym $(OBJ)BufferedFile.sym $(OBJ)Date.sym $(OBJ)DualPipe.sym \
-       $(OBJ)EARArchive.sym $(OBJ)File.sym $(OBJ)FileMonitor.sym $(OBJ)GlobalAppSettings.sym \
-       $(OBJ)JSON.sym $(OBJ)JSONGlobalSettings.sym $(OBJ)memory.sym $(OBJ)Mutex.sym \
-       $(OBJ)Semaphore.sym $(OBJ)System.sym $(OBJ)TempFile.sym $(OBJ)Thread.sym $(OBJ)Time.sym \
-       $(OBJ)unicode.sym $(OBJ)units.sym $(OBJ)Cube.sym $(OBJ)SkyBox.sym $(OBJ)Sphere.sym \
-       $(OBJ)Object3DSFormat.sym $(OBJ)Camera.sym $(OBJ)Matrix.sym $(OBJ)Mesh.sym $(OBJ)Object.sym \
-       $(OBJ)Plane.sym $(OBJ)Quaternion.sym $(OBJ)Vector3D.sym $(OBJ)BMPFormat.sym \
-       $(OBJ)GIFFormat.sym $(OBJ)JPEGFormat.sym $(OBJ)PCXFormat.sym $(OBJ)PNGFormat.sym \
-       $(OBJ)RGBFormat.sym $(if $(WINDOWS),$(OBJ)Direct3D8DisplayDriver.sym,) \
-       $(if $(WINDOWS),$(OBJ)Direct3D9DisplayDriver.sym,) $(if $(WINDOWS),$(OBJ)DirectDrawDisplayDriver.sym,) \
-       $(if $(WINDOWS),$(OBJ)GDIDisplayDriver.sym,) $(OBJ)lfbBlit.sym $(OBJ)lfbConvert.sym $(OBJ)LFBDisplayDriver.sym
-SYMBOLS2 = $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesDisplayDriver.sym,) \
-       $(OBJ)OpenGLDisplayDriver.sym $(if $(WINDOWS),$(OBJ)Win32BitmapPrinterDisplayDriver.sym,) \
-       $(if $(WINDOWS),$(OBJ)Win32ConsoleDisplayDriver.sym,) $(if $(WINDOWS),$(OBJ)Win32PrinterDisplayDriver.sym,) \
-       $(if $(LINUX),$(OBJ)XDisplayDriver.sym,) $(OBJ)Bitmap.sym $(OBJ)BitmapResource.sym $(OBJ)Color.sym $(OBJ)Display.sym \
-       $(OBJ)DisplaySystem.sym $(OBJ)FontResource.sym $(OBJ)Resource.sym $(OBJ)Surface.sym $(OBJ)Button.sym \
-       $(OBJ)CalendarControl.sym $(OBJ)DataBox.sym $(OBJ)DropBox.sym $(OBJ)EditBox.sym $(OBJ)Label.sym \
-       $(OBJ)ListBox.sym $(OBJ)Menu.sym $(OBJ)Picture.sym $(OBJ)ProgressBar.sym $(OBJ)ScrollBar.sym \
-       $(OBJ)StatusBar.sym $(OBJ)TabControl.sym $(OBJ)PaneSplitter.sym $(OBJ)Stacker.sym \
-       $(OBJ)PathBox.sym $(OBJ)ColorPicker.sym $(OBJ)FileDialog.sym $(OBJ)FindDialog.sym \
-       $(OBJ)GoToDialog.sym $(OBJ)MessageBox.sym $(OBJ)ReplaceDialog.sym $(OBJ)WindowList.sym
-SYMBOLS3 = $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesInterface.sym,) \
-       $(if $(WINDOWS),$(OBJ)Win32Interface.sym,) $(if $(WINDOWS),$(OBJ)Win32ConsoleInterface.sym,) \
-       $(if $(or $(LINUX),$(OSX)),$(OBJ)XInterface.sym,) $(OBJ)TVisionSkin.sym $(OBJ)WindowsSkin.sym $(OBJ)Anchor.sym \
-       $(OBJ)ClipBoard.sym $(OBJ)Cursor.sym $(OBJ)Desktop3D.sym $(OBJ)FormDesigner.sym \
-       $(OBJ)GuiApplication.sym $(OBJ)Interface.sym $(OBJ)Key.sym $(OBJ)Skin.sym $(OBJ)Timer.sym \
-       $(OBJ)typeEdit.sym $(OBJ)Window.sym $(OBJ)dcom.sym $(OBJ)HTTPFile.sym $(OBJ)network.sym \
-       $(OBJ)NetworkClientFile.sym $(OBJ)Service.sym $(OBJ)Socket.sym $(OBJ)Array.sym $(OBJ)AVLTree.sym \
-       $(OBJ)BuiltInContainer.sym $(OBJ)Container.sym $(OBJ)CustomAVLTree.sym $(OBJ)LinkList.sym $(OBJ)List.sym \
-       $(OBJ)Map.sym $(OBJ)BinaryTree.sym $(OBJ)BTNode.sym $(OBJ)dataTypes.sym $(OBJ)instance.sym \
-       $(OBJ)String.sym $(OBJ)OldList.sym
-
-IMPORTS = $(IMPORTS1) $(IMPORTS2) $(IMPORTS3)
-IMPORTS1 = $(OBJ)Archive.imp $(OBJ)BufferedFile.imp $(OBJ)Date.imp $(OBJ)DualPipe.imp \
-       $(OBJ)EARArchive.imp $(OBJ)File.imp $(OBJ)FileMonitor.imp $(OBJ)GlobalAppSettings.imp \
-       $(OBJ)JSON.imp $(OBJ)JSONGlobalSettings.imp $(OBJ)memory.imp $(OBJ)Mutex.imp \
-       $(OBJ)Semaphore.imp $(OBJ)System.imp $(OBJ)TempFile.imp $(OBJ)Thread.imp $(OBJ)Time.imp \
-       $(OBJ)unicode.imp $(OBJ)units.imp $(OBJ)Cube.imp $(OBJ)SkyBox.imp $(OBJ)Sphere.imp \
-       $(OBJ)Object3DSFormat.imp $(OBJ)Camera.imp $(OBJ)Matrix.imp $(OBJ)Mesh.imp $(OBJ)Object.imp \
-       $(OBJ)Plane.imp $(OBJ)Quaternion.imp $(OBJ)Vector3D.imp $(OBJ)BMPFormat.imp \
-       $(OBJ)GIFFormat.imp $(OBJ)JPEGFormat.imp $(OBJ)PCXFormat.imp $(OBJ)PNGFormat.imp \
-       $(OBJ)RGBFormat.imp $(if $(WINDOWS),$(OBJ)Direct3D8DisplayDriver.imp,) \
-       $(if $(WINDOWS),$(OBJ)Direct3D9DisplayDriver.imp,) $(if $(WINDOWS),$(OBJ)DirectDrawDisplayDriver.imp,) \
-       $(if $(WINDOWS),$(OBJ)GDIDisplayDriver.imp,) $(OBJ)lfbBlit.imp $(OBJ)lfbConvert.imp $(OBJ)LFBDisplayDriver.imp
-IMPORTS2 = $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesDisplayDriver.imp,) \
-       $(OBJ)OpenGLDisplayDriver.imp $(if $(WINDOWS),$(OBJ)Win32BitmapPrinterDisplayDriver.imp,) \
-       $(if $(WINDOWS),$(OBJ)Win32ConsoleDisplayDriver.imp,) $(if $(WINDOWS),$(OBJ)Win32PrinterDisplayDriver.imp,) \
-       $(if $(LINUX),$(OBJ)XDisplayDriver.imp,) $(OBJ)Bitmap.imp $(OBJ)BitmapResource.imp $(OBJ)Color.imp $(OBJ)Display.imp \
-       $(OBJ)DisplaySystem.imp $(OBJ)FontResource.imp $(OBJ)Resource.imp $(OBJ)Surface.imp $(OBJ)Button.imp \
-       $(OBJ)CalendarControl.imp $(OBJ)DataBox.imp $(OBJ)DropBox.imp $(OBJ)EditBox.imp $(OBJ)Label.imp \
-       $(OBJ)ListBox.imp $(OBJ)Menu.imp $(OBJ)Picture.imp $(OBJ)ProgressBar.imp $(OBJ)ScrollBar.imp \
-       $(OBJ)StatusBar.imp $(OBJ)TabControl.imp $(OBJ)PaneSplitter.imp $(OBJ)Stacker.imp \
-       $(OBJ)PathBox.imp $(OBJ)ColorPicker.imp $(OBJ)FileDialog.imp $(OBJ)FindDialog.imp \
-       $(OBJ)GoToDialog.imp $(OBJ)MessageBox.imp $(OBJ)ReplaceDialog.imp $(OBJ)WindowList.imp
-IMPORTS3 = $(if $(or $(LINUX),$(OSX)),$(OBJ)NCursesInterface.imp,) \
-       $(if $(WINDOWS),$(OBJ)Win32Interface.imp,) $(if $(WINDOWS),$(OBJ)Win32ConsoleInterface.imp,) \
-       $(if $(or $(LINUX),$(OSX)),$(OBJ)XInterface.imp,) $(OBJ)TVisionSkin.imp $(OBJ)WindowsSkin.imp $(OBJ)Anchor.imp \
-       $(OBJ)ClipBoard.imp $(OBJ)Cursor.imp $(OBJ)Desktop3D.imp $(OBJ)FormDesigner.imp \
-       $(OBJ)GuiApplication.imp $(OBJ)Interface.imp $(OBJ)Key.imp $(OBJ)Skin.imp $(OBJ)Timer.imp \
-       $(OBJ)typeEdit.imp $(OBJ)Window.imp $(OBJ)dcom.imp $(OBJ)HTTPFile.imp $(OBJ)network.imp \
-       $(OBJ)NetworkClientFile.imp $(OBJ)Service.imp $(OBJ)Socket.imp $(OBJ)Array.imp $(OBJ)AVLTree.imp \
-       $(OBJ)BuiltInContainer.imp $(OBJ)Container.imp $(OBJ)CustomAVLTree.imp $(OBJ)LinkList.imp $(OBJ)List.imp \
-       $(OBJ)Map.imp $(OBJ)BinaryTree.imp $(OBJ)BTNode.imp $(OBJ)dataTypes.imp $(OBJ)instance.imp \
-       $(OBJ)String.imp $(OBJ)OldList.imp
-
-SOURCES = $(SOURCES1) $(SOURCES2) $(SOURCES3)
-SOURCES1 = src/sys/Archive.ec src/sys/BufferedFile.ec src/sys/Date.ec src/sys/DualPipe.ec \
-       src/sys/EARArchive.ec src/sys/File.ec src/sys/FileMonitor.ec src/sys/GlobalAppSettings.ec \
-       src/sys/JSON.ec src/sys/JSONGlobalSettings.ec src/sys/memory.ec src/sys/Mutex.ec \
-       src/sys/Semaphore.ec src/sys/System.ec src/sys/TempFile.ec src/sys/Thread.ec src/sys/Time.ec \
-       src/sys/unicode.ec src/sys/units.ec src/sys/File.c src/sys/DualPipe.c src/sys/System.c \
-       src/gfx/3D/meshes/Cube.ec src/gfx/3D/meshes/SkyBox.ec src/gfx/3D/meshes/Sphere.ec \
-       src/gfx/3D/models/Object3DSFormat.ec src/gfx/3D/Camera.ec src/gfx/3D/Matrix.ec src/gfx/3D/Mesh.ec \
-       src/gfx/3D/Object.ec src/gfx/3D/Plane.ec src/gfx/3D/Quaternion.ec src/gfx/3D/Vector3D.ec \
-       src/gfx/bitmaps/BMPFormat.ec src/gfx/bitmaps/GIFFormat.ec src/gfx/bitmaps/JPEGFormat.ec \
-       src/gfx/bitmaps/PCXFormat.ec src/gfx/bitmaps/PNGFormat.ec src/gfx/bitmaps/RGBFormat.ec \
-       src/gfx/drivers/harfbuzz/harfbuzz-arabic.c src/gfx/drivers/harfbuzz/harfbuzz-buffer.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-gdef.c src/gfx/drivers/harfbuzz/harfbuzz-global.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-gpos.c src/gfx/drivers/harfbuzz/harfbuzz-gsub.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-hangul.c src/gfx/drivers/harfbuzz/harfbuzz-hebrew.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-indic.c src/gfx/drivers/harfbuzz/harfbuzz-khmer.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-myanmar.c src/gfx/drivers/harfbuzz/harfbuzz-open.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-shaper.c
-SOURCES2 = src/gfx/drivers/harfbuzz/harfbuzz-stream.c \
-       src/gfx/drivers/harfbuzz/harfbuzz-tibetan.c $(if $(WINDOWS),src/gfx/drivers/Direct3D8DisplayDriver.ec,) \
-       $(if $(WINDOWS),src/gfx/drivers/Direct3D9DisplayDriver.ec,) $(if $(WINDOWS),src/gfx/drivers/DirectDrawDisplayDriver.ec,) \
-       $(if $(WINDOWS),src/gfx/drivers/GDIDisplayDriver.ec,) src/gfx/drivers/lfbBlit.ec src/gfx/drivers/lfbConvert.ec \
-       src/gfx/drivers/LFBDisplayDriver.ec $(if $(or $(LINUX),$(OSX)),src/gfx/drivers/NCursesDisplayDriver.ec,) \
-       src/gfx/drivers/OpenGLDisplayDriver.ec $(if $(WINDOWS),src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec,) \
-       $(if $(WINDOWS),src/gfx/drivers/Win32ConsoleDisplayDriver.ec,) $(if $(WINDOWS),src/gfx/drivers/Win32PrinterDisplayDriver.ec,) \
-       $(if $(LINUX),src/gfx/drivers/XDisplayDriver.ec,) src/gfx/Bitmap.ec src/gfx/BitmapResource.ec src/gfx/Color.ec \
-       src/gfx/Display.ec src/gfx/DisplaySystem.ec src/gfx/FontResource.ec src/gfx/Resource.ec \
-       src/gfx/Surface.ec src/gui/controls/Button.ec src/gui/controls/CalendarControl.ec \
-       src/gui/controls/DataBox.ec src/gui/controls/DropBox.ec src/gui/controls/EditBox.ec \
-       src/gui/controls/Label.ec src/gui/controls/ListBox.ec src/gui/controls/Menu.ec \
-       src/gui/controls/Picture.ec src/gui/controls/ProgressBar.ec src/gui/controls/ScrollBar.ec \
-       src/gui/controls/StatusBar.ec src/gui/controls/TabControl.ec src/gui/controls/PaneSplitter.ec \
-       src/gui/controls/Stacker.ec src/gui/controls/PathBox.ec
-SOURCES3 = src/gui/dialogs/ColorPicker.ec src/gui/dialogs/FileDialog.ec \
-       src/gui/dialogs/FindDialog.ec src/gui/dialogs/GoToDialog.ec src/gui/dialogs/MessageBox.ec \
-       src/gui/dialogs/ReplaceDialog.ec src/gui/dialogs/WindowList.ec \
-       $(if $(or $(LINUX),$(OSX)),src/gui/drivers/NCursesInterface.ec,) $(if $(WINDOWS),src/gui/drivers/Win32Interface.ec,) \
-       $(if $(WINDOWS),src/gui/drivers/Win32ConsoleInterface.ec,) $(if $(or $(LINUX),$(OSX)),src/gui/drivers/XInterface.ec,) \
-       src/gui/skins/TVisionSkin.ec src/gui/skins/WindowsSkin.ec src/gui/Anchor.ec src/gui/ClipBoard.ec \
-       src/gui/Cursor.ec src/gui/Desktop3D.ec src/gui/FormDesigner.ec src/gui/GuiApplication.ec \
-       src/gui/Interface.ec src/gui/Key.ec src/gui/Skin.ec src/gui/Timer.ec src/gui/typeEdit.ec \
-       src/gui/Window.ec src/net/dcom.ec src/net/HTTPFile.ec src/net/network.ec \
-       src/net/NetworkClientFile.ec src/net/Service.ec src/net/Socket.ec src/com/containers/Array.ec \
-       src/com/containers/AVLTree.ec src/com/containers/BuiltInContainer.ec src/com/containers/Container.ec \
-       src/com/containers/CustomAVLTree.ec src/com/containers/LinkList.ec src/com/containers/List.ec \
-       src/com/containers/Map.ec src/com/BinaryTree.ec src/com/BTNode.ec src/com/dataTypes.ec \
-       src/com/instance.ec src/com/String.ec src/com/OldList.ec src/com/instance.c
+COBJECTS1 = \
+       $(OBJ)Archive.c \
+       $(OBJ)BufferedFile.c \
+       $(OBJ)Date.c \
+       $(OBJ)DualPipe.c \
+       $(OBJ)EARArchive.c \
+       $(OBJ)File.c \
+       $(OBJ)FileMonitor.c \
+       $(OBJ)GlobalAppSettings.c \
+       $(OBJ)JSON.c \
+       $(OBJ)JSONGlobalSettings.c \
+       $(OBJ)memory.c \
+       $(OBJ)Mutex.c \
+       $(OBJ)Semaphore.c \
+       $(OBJ)System.c \
+       $(OBJ)TempFile.c \
+       $(OBJ)Thread.c \
+       $(OBJ)Time.c \
+       $(OBJ)unicode.c \
+       $(OBJ)units.c \
+       $(OBJ)i18n.c \
+       $(OBJ)Cube.c \
+       $(OBJ)SkyBox.c \
+       $(OBJ)Sphere.c \
+       $(OBJ)Object3DSFormat.c \
+       $(OBJ)Camera.c \
+       $(OBJ)Matrix.c \
+       $(OBJ)Mesh.c \
+       $(OBJ)Object.c \
+       $(OBJ)Plane.c \
+       $(OBJ)Quaternion.c \
+       $(OBJ)Vector3D.c \
+       $(OBJ)BMPFormat.c \
+       $(OBJ)GIFFormat.c \
+       $(OBJ)JPEGFormat.c \
+       $(OBJ)PCXFormat.c \
+       $(OBJ)PNGFormat.c \
+       $(OBJ)RGBFormat.c \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D8DisplayDriver.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D9DisplayDriver.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)DirectDrawDisplayDriver.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)GDIDisplayDriver.c,) \
+       $(OBJ)lfbBlit.c \
+       $(OBJ)lfbConvert.c \
+       $(OBJ)LFBDisplayDriver.c \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesDisplayDriver.c,)
+COBJECTS2 = \
+       $(if $(OSX_TARGET),,$(OBJ)OpenGLDisplayDriver.c) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32BitmapPrinterDisplayDriver.c,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaOpenGLDisplayDriver.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleDisplayDriver.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32PrinterDisplayDriver.c,) \
+       $(if $(LINUX_TARGET),$(OBJ)XDisplayDriver.c,) \
+       $(OBJ)Bitmap.c \
+       $(OBJ)BitmapResource.c \
+       $(OBJ)Color.c \
+       $(OBJ)Display.c \
+       $(OBJ)DisplaySystem.c \
+       $(OBJ)FontResource.c \
+       $(OBJ)Resource.c \
+       $(OBJ)Surface.c \
+       $(OBJ)Button.c \
+       $(OBJ)CalendarControl.c \
+       $(OBJ)DataBox.c \
+       $(OBJ)DropBox.c \
+       $(OBJ)EditBox.c \
+       $(OBJ)Label.c \
+       $(OBJ)ListBox.c \
+       $(OBJ)Menu.c \
+       $(OBJ)Picture.c \
+       $(OBJ)ProgressBar.c \
+       $(OBJ)ScrollBar.c \
+       $(OBJ)StatusBar.c \
+       $(OBJ)TabControl.c \
+       $(OBJ)PaneSplitter.c \
+       $(OBJ)Stacker.c \
+       $(OBJ)PathBox.c \
+       $(OBJ)ToolTip.c \
+       $(OBJ)SelectorBar.c \
+       $(OBJ)ColorPicker.c \
+       $(OBJ)FileDialog.c \
+       $(OBJ)FindDialog.c \
+       $(OBJ)GoToDialog.c \
+       $(OBJ)MessageBox.c \
+       $(OBJ)ReplaceDialog.c \
+       $(OBJ)WindowList.c \
+       $(if $(OSX_TARGET),$(OBJ)CocoaDispatch.c,)
+COBJECTS3 = \
+       $(if $(OSX_TARGET),$(OBJ)CocoaInterface.c,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesInterface.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32Interface.c,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleInterface.c,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)XInterface.c,) \
+       $(OBJ)TVisionSkin.c \
+       $(OBJ)WindowsSkin.c \
+       $(OBJ)Anchor.c \
+       $(OBJ)ClipBoard.c \
+       $(OBJ)Cursor.c \
+       $(OBJ)Desktop3D.c \
+       $(OBJ)FormDesigner.c \
+       $(OBJ)GuiApplication.c \
+       $(OBJ)Interface.c \
+       $(OBJ)Key.c \
+       $(OBJ)Skin.c \
+       $(OBJ)Timer.c \
+       $(OBJ)typeEdit.c \
+       $(OBJ)Window.c \
+       $(OBJ)dcom.c \
+       $(OBJ)HTTPFile.c \
+       $(OBJ)network.c \
+       $(OBJ)NetworkClientFile.c \
+       $(OBJ)Service.c \
+       $(OBJ)Socket.c \
+       $(OBJ)Array.c \
+       $(OBJ)AVLTree.c \
+       $(OBJ)BuiltInContainer.c \
+       $(OBJ)Container.c \
+       $(OBJ)CustomAVLTree.c \
+       $(OBJ)LinkList.c \
+       $(OBJ)List.c \
+       $(OBJ)Map.c \
+       $(OBJ)BinaryTree.c \
+       $(OBJ)BTNode.c \
+       $(OBJ)dataTypes.c \
+       $(OBJ)instance.c \
+       $(OBJ)String.c \
+       $(OBJ)OldList.c
+
+SYMBOLS = $(SYMBOLS1) $(SYMBOLS2) $(SYMBOLS3) $(SYMBOLS4)
+SYMBOLS1 = \
+       $(OBJ)Archive.sym \
+       $(OBJ)BufferedFile.sym \
+       $(OBJ)Date.sym \
+       $(OBJ)DualPipe.sym \
+       $(OBJ)EARArchive.sym \
+       $(OBJ)File.sym \
+       $(OBJ)FileMonitor.sym \
+       $(OBJ)GlobalAppSettings.sym \
+       $(OBJ)JSON.sym \
+       $(OBJ)JSONGlobalSettings.sym \
+       $(OBJ)memory.sym \
+       $(OBJ)Mutex.sym \
+       $(OBJ)Semaphore.sym \
+       $(OBJ)System.sym \
+       $(OBJ)TempFile.sym \
+       $(OBJ)Thread.sym \
+       $(OBJ)Time.sym \
+       $(OBJ)unicode.sym \
+       $(OBJ)units.sym \
+       $(OBJ)i18n.sym \
+       $(OBJ)Cube.sym \
+       $(OBJ)SkyBox.sym \
+       $(OBJ)Sphere.sym \
+       $(OBJ)Object3DSFormat.sym \
+       $(OBJ)Camera.sym \
+       $(OBJ)Matrix.sym \
+       $(OBJ)Mesh.sym \
+       $(OBJ)Object.sym \
+       $(OBJ)Plane.sym \
+       $(OBJ)Quaternion.sym \
+       $(OBJ)Vector3D.sym \
+       $(OBJ)BMPFormat.sym \
+       $(OBJ)GIFFormat.sym \
+       $(OBJ)JPEGFormat.sym \
+       $(OBJ)PCXFormat.sym \
+       $(OBJ)PNGFormat.sym \
+       $(OBJ)RGBFormat.sym \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D8DisplayDriver.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D9DisplayDriver.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)DirectDrawDisplayDriver.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)GDIDisplayDriver.sym,) \
+       $(OBJ)lfbBlit.sym \
+       $(OBJ)lfbConvert.sym \
+       $(OBJ)LFBDisplayDriver.sym
+SYMBOLS2 = \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesDisplayDriver.sym,) \
+       $(if $(OSX_TARGET),,$(OBJ)OpenGLDisplayDriver.sym) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32BitmapPrinterDisplayDriver.sym,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaOpenGLDisplayDriver.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleDisplayDriver.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32PrinterDisplayDriver.sym,) \
+       $(if $(LINUX_TARGET),$(OBJ)XDisplayDriver.sym,) \
+       $(OBJ)Bitmap.sym \
+       $(OBJ)BitmapResource.sym \
+       $(OBJ)Color.sym \
+       $(OBJ)Display.sym \
+       $(OBJ)DisplaySystem.sym \
+       $(OBJ)FontResource.sym \
+       $(OBJ)Resource.sym \
+       $(OBJ)Surface.sym \
+       $(OBJ)Button.sym \
+       $(OBJ)CalendarControl.sym \
+       $(OBJ)DataBox.sym \
+       $(OBJ)DropBox.sym \
+       $(OBJ)EditBox.sym \
+       $(OBJ)Label.sym \
+       $(OBJ)ListBox.sym \
+       $(OBJ)Menu.sym \
+       $(OBJ)Picture.sym \
+       $(OBJ)ProgressBar.sym \
+       $(OBJ)ScrollBar.sym \
+       $(OBJ)StatusBar.sym \
+       $(OBJ)TabControl.sym \
+       $(OBJ)PaneSplitter.sym \
+       $(OBJ)Stacker.sym \
+       $(OBJ)PathBox.sym \
+       $(OBJ)ToolTip.sym \
+       $(OBJ)SelectorBar.sym \
+       $(OBJ)ColorPicker.sym \
+       $(OBJ)FileDialog.sym \
+       $(OBJ)FindDialog.sym \
+       $(OBJ)GoToDialog.sym
+SYMBOLS3 = \
+       $(OBJ)MessageBox.sym \
+       $(OBJ)ReplaceDialog.sym \
+       $(OBJ)WindowList.sym \
+       $(if $(OSX_TARGET),$(OBJ)CocoaDispatch.sym,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaInterface.sym,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesInterface.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32Interface.sym,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleInterface.sym,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)XInterface.sym,) \
+       $(OBJ)TVisionSkin.sym \
+       $(OBJ)WindowsSkin.sym \
+       $(OBJ)Anchor.sym \
+       $(OBJ)ClipBoard.sym \
+       $(OBJ)Cursor.sym \
+       $(OBJ)Desktop3D.sym \
+       $(OBJ)FormDesigner.sym \
+       $(OBJ)GuiApplication.sym \
+       $(OBJ)Interface.sym \
+       $(OBJ)Key.sym \
+       $(OBJ)Skin.sym \
+       $(OBJ)Timer.sym \
+       $(OBJ)typeEdit.sym \
+       $(OBJ)Window.sym \
+       $(OBJ)dcom.sym \
+       $(OBJ)HTTPFile.sym \
+       $(OBJ)network.sym \
+       $(OBJ)NetworkClientFile.sym \
+       $(OBJ)Service.sym \
+       $(OBJ)Socket.sym \
+       $(OBJ)Array.sym \
+       $(OBJ)AVLTree.sym \
+       $(OBJ)BuiltInContainer.sym \
+       $(OBJ)Container.sym \
+       $(OBJ)CustomAVLTree.sym \
+       $(OBJ)LinkList.sym \
+       $(OBJ)List.sym \
+       $(OBJ)Map.sym \
+       $(OBJ)BinaryTree.sym \
+       $(OBJ)BTNode.sym \
+       $(OBJ)dataTypes.sym \
+       $(OBJ)instance.sym
+SYMBOLS4 = \
+       $(OBJ)String.sym \
+       $(OBJ)OldList.sym
+
+IMPORTS = $(IMPORTS1) $(IMPORTS2) $(IMPORTS3) $(IMPORTS4)
+IMPORTS1 = \
+       $(OBJ)Archive.imp \
+       $(OBJ)BufferedFile.imp \
+       $(OBJ)Date.imp \
+       $(OBJ)DualPipe.imp \
+       $(OBJ)EARArchive.imp \
+       $(OBJ)File.imp \
+       $(OBJ)FileMonitor.imp \
+       $(OBJ)GlobalAppSettings.imp \
+       $(OBJ)JSON.imp \
+       $(OBJ)JSONGlobalSettings.imp \
+       $(OBJ)memory.imp \
+       $(OBJ)Mutex.imp \
+       $(OBJ)Semaphore.imp \
+       $(OBJ)System.imp \
+       $(OBJ)TempFile.imp \
+       $(OBJ)Thread.imp \
+       $(OBJ)Time.imp \
+       $(OBJ)unicode.imp \
+       $(OBJ)units.imp \
+       $(OBJ)i18n.imp \
+       $(OBJ)Cube.imp \
+       $(OBJ)SkyBox.imp \
+       $(OBJ)Sphere.imp \
+       $(OBJ)Object3DSFormat.imp \
+       $(OBJ)Camera.imp \
+       $(OBJ)Matrix.imp \
+       $(OBJ)Mesh.imp \
+       $(OBJ)Object.imp \
+       $(OBJ)Plane.imp \
+       $(OBJ)Quaternion.imp \
+       $(OBJ)Vector3D.imp \
+       $(OBJ)BMPFormat.imp \
+       $(OBJ)GIFFormat.imp \
+       $(OBJ)JPEGFormat.imp \
+       $(OBJ)PCXFormat.imp \
+       $(OBJ)PNGFormat.imp \
+       $(OBJ)RGBFormat.imp \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D8DisplayDriver.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Direct3D9DisplayDriver.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)DirectDrawDisplayDriver.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)GDIDisplayDriver.imp,) \
+       $(OBJ)lfbBlit.imp \
+       $(OBJ)lfbConvert.imp \
+       $(OBJ)LFBDisplayDriver.imp
+IMPORTS2 = \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesDisplayDriver.imp,) \
+       $(if $(OSX_TARGET),,$(OBJ)OpenGLDisplayDriver.imp) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32BitmapPrinterDisplayDriver.imp,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaOpenGLDisplayDriver.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleDisplayDriver.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32PrinterDisplayDriver.imp,) \
+       $(if $(LINUX_TARGET),$(OBJ)XDisplayDriver.imp,) \
+       $(OBJ)Bitmap.imp \
+       $(OBJ)BitmapResource.imp \
+       $(OBJ)Color.imp \
+       $(OBJ)Display.imp \
+       $(OBJ)DisplaySystem.imp \
+       $(OBJ)FontResource.imp \
+       $(OBJ)Resource.imp \
+       $(OBJ)Surface.imp \
+       $(OBJ)Button.imp \
+       $(OBJ)CalendarControl.imp \
+       $(OBJ)DataBox.imp \
+       $(OBJ)DropBox.imp \
+       $(OBJ)EditBox.imp \
+       $(OBJ)Label.imp \
+       $(OBJ)ListBox.imp \
+       $(OBJ)Menu.imp \
+       $(OBJ)Picture.imp \
+       $(OBJ)ProgressBar.imp \
+       $(OBJ)ScrollBar.imp \
+       $(OBJ)StatusBar.imp \
+       $(OBJ)TabControl.imp \
+       $(OBJ)PaneSplitter.imp \
+       $(OBJ)Stacker.imp \
+       $(OBJ)PathBox.imp \
+       $(OBJ)ToolTip.imp \
+       $(OBJ)SelectorBar.imp \
+       $(OBJ)ColorPicker.imp \
+       $(OBJ)FileDialog.imp \
+       $(OBJ)FindDialog.imp \
+       $(OBJ)GoToDialog.imp
+IMPORTS3 = \
+       $(OBJ)MessageBox.imp \
+       $(OBJ)ReplaceDialog.imp \
+       $(OBJ)WindowList.imp \
+       $(if $(OSX_TARGET),$(OBJ)CocoaDispatch.imp,) \
+       $(if $(OSX_TARGET),$(OBJ)CocoaInterface.imp,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)NCursesInterface.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32Interface.imp,) \
+       $(if $(WINDOWS_TARGET),$(OBJ)Win32ConsoleInterface.imp,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),$(OBJ)XInterface.imp,) \
+       $(OBJ)TVisionSkin.imp \
+       $(OBJ)WindowsSkin.imp \
+       $(OBJ)Anchor.imp \
+       $(OBJ)ClipBoard.imp \
+       $(OBJ)Cursor.imp \
+       $(OBJ)Desktop3D.imp \
+       $(OBJ)FormDesigner.imp \
+       $(OBJ)GuiApplication.imp \
+       $(OBJ)Interface.imp \
+       $(OBJ)Key.imp \
+       $(OBJ)Skin.imp \
+       $(OBJ)Timer.imp \
+       $(OBJ)typeEdit.imp \
+       $(OBJ)Window.imp \
+       $(OBJ)dcom.imp \
+       $(OBJ)HTTPFile.imp \
+       $(OBJ)network.imp \
+       $(OBJ)NetworkClientFile.imp \
+       $(OBJ)Service.imp \
+       $(OBJ)Socket.imp \
+       $(OBJ)Array.imp \
+       $(OBJ)AVLTree.imp \
+       $(OBJ)BuiltInContainer.imp \
+       $(OBJ)Container.imp \
+       $(OBJ)CustomAVLTree.imp \
+       $(OBJ)LinkList.imp \
+       $(OBJ)List.imp \
+       $(OBJ)Map.imp \
+       $(OBJ)BinaryTree.imp \
+       $(OBJ)BTNode.imp \
+       $(OBJ)dataTypes.imp \
+       $(OBJ)instance.imp
+IMPORTS4 = \
+       $(OBJ)String.imp \
+       $(OBJ)OldList.imp
+
+SOURCES = $(SOURCES1) $(SOURCES2) $(SOURCES3) $(SOURCES4)
+SOURCES1 = \
+       src/sys/Archive.ec \
+       src/sys/BufferedFile.ec \
+       src/sys/Date.ec \
+       src/sys/DualPipe.ec \
+       src/sys/EARArchive.ec \
+       src/sys/File.ec \
+       src/sys/FileMonitor.ec \
+       src/sys/GlobalAppSettings.ec \
+       src/sys/JSON.ec \
+       src/sys/JSONGlobalSettings.ec \
+       src/sys/memory.ec \
+       src/sys/Mutex.ec \
+       src/sys/Semaphore.ec \
+       src/sys/System.ec \
+       src/sys/TempFile.ec \
+       src/sys/Thread.ec \
+       src/sys/Time.ec \
+       src/sys/unicode.ec \
+       src/sys/units.ec \
+       src/sys/File.c \
+       src/sys/DualPipe.c \
+       src/sys/System.c \
+       src/sys/i18n.ec \
+       src/gfx/3D/meshes/Cube.ec \
+       src/gfx/3D/meshes/SkyBox.ec \
+       src/gfx/3D/meshes/Sphere.ec \
+       src/gfx/3D/models/Object3DSFormat.ec \
+       src/gfx/3D/Camera.ec \
+       src/gfx/3D/Matrix.ec \
+       src/gfx/3D/Mesh.ec \
+       src/gfx/3D/Object.ec \
+       src/gfx/3D/Plane.ec \
+       src/gfx/3D/Quaternion.ec \
+       src/gfx/3D/Vector3D.ec \
+       src/gfx/bitmaps/BMPFormat.ec \
+       src/gfx/bitmaps/GIFFormat.ec \
+       src/gfx/bitmaps/JPEGFormat.ec \
+       src/gfx/bitmaps/PCXFormat.ec \
+       src/gfx/bitmaps/PNGFormat.ec \
+       src/gfx/bitmaps/RGBFormat.ec \
+       src/gfx/drivers/harfbuzz/unicode/harfbuzz-freetype.c \
+       src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode-tables.c \
+       src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-arabic.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-buffer.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-gdef.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-gpos.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-gsub.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-hangul.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-hebrew.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-indic.c
+SOURCES2 = \
+       src/gfx/drivers/harfbuzz/harfbuzz-khmer.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-myanmar.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-open.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-shaper.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-stream.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-tibetan.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-impl.c \
+       src/gfx/drivers/harfbuzz/harfbuzz-thai.c \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/Direct3D8DisplayDriver.ec,) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/Direct3D9DisplayDriver.ec,) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/DirectDrawDisplayDriver.ec,) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/GDIDisplayDriver.ec,) \
+       src/gfx/drivers/lfbBlit.ec \
+       src/gfx/drivers/lfbConvert.ec \
+       src/gfx/drivers/LFBDisplayDriver.ec \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),src/gfx/drivers/NCursesDisplayDriver.ec,) \
+       $(if $(OSX_TARGET),,src/gfx/drivers/OpenGLDisplayDriver.ec) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec,) \
+       $(if $(OSX_TARGET),src/gfx/drivers/CocoaOpenGLDisplayDriver.ec,) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/Win32ConsoleDisplayDriver.ec,) \
+       $(if $(WINDOWS_TARGET),src/gfx/drivers/Win32PrinterDisplayDriver.ec,) \
+       $(if $(LINUX_TARGET),src/gfx/drivers/XDisplayDriver.ec,) \
+       src/gfx/Bitmap.ec \
+       src/gfx/BitmapResource.ec \
+       src/gfx/Color.ec \
+       src/gfx/Display.ec \
+       src/gfx/DisplaySystem.ec \
+       src/gfx/FontResource.ec \
+       src/gfx/Resource.ec \
+       src/gfx/Surface.ec \
+       src/gui/controls/Button.ec \
+       src/gui/controls/CalendarControl.ec \
+       src/gui/controls/DataBox.ec \
+       src/gui/controls/DropBox.ec \
+       src/gui/controls/EditBox.ec
+SOURCES3 = \
+       src/gui/controls/Label.ec \
+       src/gui/controls/ListBox.ec \
+       src/gui/controls/Menu.ec \
+       src/gui/controls/Picture.ec \
+       src/gui/controls/ProgressBar.ec \
+       src/gui/controls/ScrollBar.ec \
+       src/gui/controls/StatusBar.ec \
+       src/gui/controls/TabControl.ec \
+       src/gui/controls/PaneSplitter.ec \
+       src/gui/controls/Stacker.ec \
+       src/gui/controls/PathBox.ec \
+       src/gui/controls/ToolTip.ec \
+       src/gui/controls/SelectorBar.ec \
+       src/gui/dialogs/ColorPicker.ec \
+       src/gui/dialogs/FileDialog.ec \
+       src/gui/dialogs/FindDialog.ec \
+       src/gui/dialogs/GoToDialog.ec \
+       src/gui/dialogs/MessageBox.ec \
+       src/gui/dialogs/ReplaceDialog.ec \
+       src/gui/dialogs/WindowList.ec \
+       $(if $(OSX_TARGET),src/gui/drivers/cocoa/CocoaDispatch.ec,) \
+       $(if $(OSX_TARGET),src/gui/drivers/cocoa/CocoaEcereBridge.m,) \
+       $(if $(OSX_TARGET),src/gui/drivers/cocoa/CocoaInterface.ec,) \
+       $(if $(OSX_TARGET),src/gui/drivers/cocoa/EcereView.m,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),src/gui/drivers/NCursesInterface.ec,) \
+       $(if $(WINDOWS_TARGET),src/gui/drivers/Win32Interface.ec,) \
+       $(if $(WINDOWS_TARGET),src/gui/drivers/Win32ConsoleInterface.ec,) \
+       $(if $(or $(LINUX_TARGET),$(OSX_TARGET)),src/gui/drivers/XInterface.ec,) \
+       src/gui/skins/TVisionSkin.ec \
+       src/gui/skins/WindowsSkin.ec \
+       src/gui/Anchor.ec \
+       src/gui/ClipBoard.ec \
+       src/gui/Cursor.ec \
+       src/gui/Desktop3D.ec \
+       src/gui/FormDesigner.ec \
+       src/gui/GuiApplication.ec \
+       src/gui/Interface.ec \
+       src/gui/Key.ec \
+       src/gui/Skin.ec \
+       src/gui/Timer.ec \
+       src/gui/typeEdit.ec \
+       src/gui/Window.ec \
+       src/net/dcom.ec \
+       src/net/HTTPFile.ec \
+       src/net/network.ec \
+       src/net/NetworkClientFile.ec
+SOURCES4 = \
+       src/net/Service.ec \
+       src/net/Socket.ec \
+       src/com/containers/Array.ec \
+       src/com/containers/AVLTree.ec \
+       src/com/containers/BuiltInContainer.ec \
+       src/com/containers/Container.ec \
+       src/com/containers/CustomAVLTree.ec \
+       src/com/containers/LinkList.ec \
+       src/com/containers/List.ec \
+       src/com/containers/Map.ec \
+       src/com/BinaryTree.ec \
+       src/com/BTNode.ec \
+       src/com/dataTypes.ec \
+       src/com/instance.ec \
+       src/com/String.ec \
+       src/com/OldList.ec \
+       src/com/instance.c
 
 RESOURCES = $(RESOURCES1) $(RESOURCES2) $(RESOURCES3)
-RESOURCES1 = $(RES)actions/editFind.png $(RES)actions/folderNew.png \
-       $(RES)actions/goDown.png $(RES)actions/goHome.png $(RES)actions/goNext.png \
-       $(RES)actions/goPrevious.png $(RES)actions/goUp.png $(RES)actions/listAdd.png $(RES)actions/listRemove.png \
-       $(RES)actions/viewRefresh.png $(RES)actions/windowNew.png $(RES)constructs/class.png \
-       $(RES)constructs/data.png $(RES)constructs/dataPrivate.png $(RES)constructs/dataType.png \
-       $(RES)constructs/enum.png $(RES)constructs/enumValue.png $(RES)constructs/event.png \
-       $(RES)constructs/library.png $(RES)constructs/method.png $(RES)constructs/methodPrivate.png \
-       $(RES)constructs/namespace.png $(RES)constructs/property.png $(RES)constructs/propertyPrivate.png \
-       $(RES)controls/button.png $(RES)controls/calendar.png $(RES)controls/checkBox.png \
-       $(RES)controls/dataBox.png $(RES)controls/dropBox.png $(RES)controls/editBox.png \
-       $(RES)controls/groupBox.png $(RES)controls/label.png $(RES)controls/listBox.png $(RES)controls/menu.png \
-       $(RES)controls/optionBox.png $(RES)controls/progressBar.png $(RES)controls/scrollBarHorizontal.png \
-       $(RES)controls/scrollBarVertical.png $(RES)controls/statusBar.png $(RES)cursors/arrow.png $(RES)cursors/cross.png \
-       $(RES)cursors/iBeam.png $(RES)cursors/move.png $(RES)cursors/sizeEastWest.png \
-       $(RES)cursors/sizeNortEastSouthWest.png $(RES)cursors/sizeNorthSouth.png $(RES)cursors/sizeNortWestSouthEast.png \
-       $(RES)devices/computer.png $(RES)devices/driveHardDisk.png
-RESOURCES2 = $(RES)devices/driveRemovableMedia.png $(RES)devices/mediaFloppy.png \
-       $(RES)devices/mediaOptical.png $(RES)elements/areaClose.png $(RES)elements/areaMaximize.png \
-       $(RES)elements/areaMinimize.png $(RES)elements/areaRestore.png $(RES)elements/arrowDown.png \
-       $(RES)elements/arrowLeft.png $(RES)elements/arrowRight.png $(RES)elements/arrowUp.png \
-       $(RES)elements/checkBoxChecked.png $(RES)elements/checkBoxDisabled.png \
-       $(RES)elements/checkBoxDisabledChecked.png $(RES)elements/checkBox.png $(RES)elements/optionBoxDisabled.png \
-       $(RES)elements/optionBoxDisabledSelected.png $(RES)elements/optionBoxDown.png $(RES)elements/optionBoxSelectedDown.png \
-       $(RES)elements/optionBoxSelectedUp.png $(RES)elements/optionBoxUp.png $(RES)elements/orderAscending.png \
-       $(RES)elements/orderCategorized.png $(RES)elements/orderDescending.png $(RES)emblems/unreadable.png \
-       $(RES)mimeTypes/file.png $(RES)mimeTypes/image.png $(RES)mimeTypes/package.png \
-       $(RES)mimeTypes/packageOpticalDisc.png $(RES)mimeTypes/packageSoftware.png $(RES)mimeTypes/text.png \
-       $(RES)mimeTypes/textCHeader.png $(RES)mimeTypes/textCSource.png $(RES)mimeTypes/textC++Header.png \
-       $(RES)mimeTypes/textC++Source.png $(RES)mimeTypes/textEcereHeader.png $(RES)mimeTypes/textEcereProject.png \
-       $(RES)mimeTypes/textEcereSource.png $(RES)mimeTypes/textEcereWorkspace.png \
-       $(RES)mimeTypes/textHyperTextMarkup.png $(RES)mimeTypes/brokenFile.png $(RES)places/driveRemote.png
-RESOURCES3 = $(RES)places/folder.png $(RES)places/folderRemote.png \
-       $(RES)places/networkServer.png $(RES)places/networkWorkgroup.png $(RES)places/brokenFolder.png \
-       $(RES)status/audioVolumeHigh.png $(RES)status/folderOpen.png $(RES)unicode/derivedGeneralCategoryStripped.txt
+RESOURCES1 = \
+       $(RES)actions/editFind.png \
+       $(RES)actions/folderNew.png \
+       $(RES)actions/goDown.png \
+       $(RES)actions/goHome.png \
+       $(RES)actions/goNext.png \
+       $(RES)actions/goPrevious.png \
+       $(RES)actions/goUp.png \
+       $(RES)actions/listAdd.png \
+       $(RES)actions/listRemove.png \
+       $(RES)actions/viewRefresh.png \
+       $(RES)actions/windowNew.png \
+       $(RES)constructs/class.png \
+       $(RES)constructs/data.png \
+       $(RES)constructs/dataPrivate.png \
+       $(RES)constructs/dataType.png \
+       $(RES)constructs/enum.png \
+       $(RES)constructs/enumValue.png \
+       $(RES)constructs/event.png \
+       $(RES)constructs/library.png \
+       $(RES)constructs/method.png \
+       $(RES)constructs/methodPrivate.png \
+       $(RES)constructs/namespace.png \
+       $(RES)constructs/property.png \
+       $(RES)constructs/propertyPrivate.png \
+       $(RES)controls/button.png \
+       $(RES)controls/calendar.png \
+       $(RES)controls/checkBox.png \
+       $(RES)controls/dataBox.png \
+       $(RES)controls/dropBox.png \
+       $(RES)controls/editBox.png \
+       $(RES)controls/groupBox.png \
+       $(RES)controls/label.png \
+       $(RES)controls/listBox.png \
+       $(RES)controls/menu.png \
+       $(RES)controls/optionBox.png \
+       $(RES)controls/progressBar.png \
+       $(RES)controls/scrollBarHorizontal.png \
+       $(RES)controls/scrollBarVertical.png \
+       $(RES)controls/statusBar.png \
+       $(RES)cursors/arrow.png \
+       $(RES)cursors/cross.png \
+       $(RES)cursors/iBeam.png \
+       $(RES)cursors/move.png \
+       $(RES)cursors/sizeEastWest.png \
+       $(RES)cursors/sizeNortEastSouthWest.png \
+       $(RES)cursors/sizeNorthSouth.png \
+       $(RES)cursors/sizeNortWestSouthEast.png \
+       $(RES)devices/computer.png \
+       $(RES)devices/driveHardDisk.png
+RESOURCES2 = \
+       $(RES)devices/driveRemovableMedia.png \
+       $(RES)devices/mediaFloppy.png \
+       $(RES)devices/mediaOptical.png \
+       $(RES)elements/areaClose.png \
+       $(RES)elements/areaMaximize.png \
+       $(RES)elements/areaMinimize.png \
+       $(RES)elements/areaRestore.png \
+       $(RES)elements/arrowDown.png \
+       $(RES)elements/arrowLeft.png \
+       $(RES)elements/arrowRight.png \
+       $(RES)elements/arrowUp.png \
+       $(RES)elements/checkBoxChecked.png \
+       $(RES)elements/checkBoxDisabled.png \
+       $(RES)elements/checkBoxDisabledChecked.png \
+       $(RES)elements/checkBox.png \
+       $(RES)elements/optionBoxDisabled.png \
+       $(RES)elements/optionBoxDisabledSelected.png \
+       $(RES)elements/optionBoxDown.png \
+       $(RES)elements/optionBoxSelectedDown.png \
+       $(RES)elements/optionBoxSelectedUp.png \
+       $(RES)elements/optionBoxUp.png \
+       $(RES)elements/orderAscending.png \
+       $(RES)elements/orderCategorized.png \
+       $(RES)elements/orderDescending.png \
+       $(RES)emblems/unreadable.png \
+       $(RES)mimeTypes/file.png \
+       $(RES)mimeTypes/image.png \
+       $(RES)mimeTypes/package.png \
+       $(RES)mimeTypes/packageOpticalDisc.png \
+       $(RES)mimeTypes/packageSoftware.png \
+       $(RES)mimeTypes/text.png \
+       $(RES)mimeTypes/textCHeader.png \
+       $(RES)mimeTypes/textCSource.png \
+       $(RES)mimeTypes/textC++Header.png \
+       $(RES)mimeTypes/textC++Source.png \
+       $(RES)mimeTypes/textEcereHeader.png \
+       $(RES)mimeTypes/textEcereProject.png \
+       $(RES)mimeTypes/textEcereSource.png \
+       $(RES)mimeTypes/textEcereWorkspace.png \
+       $(RES)mimeTypes/textHyperTextMarkup.png \
+       $(RES)mimeTypes/brokenFile.png \
+       $(RES)places/driveRemote.png
+RESOURCES3 = \
+       $(RES)places/folder.png \
+       $(RES)places/folderRemote.png \
+       $(RES)places/networkServer.png \
+       $(RES)places/networkWorkgroup.png \
+       $(RES)places/brokenFolder.png \
+       $(RES)status/audioVolumeHigh.png \
+       $(RES)status/folderOpen.png \
+       $(RES)unicode/derivedGeneralCategoryStripped.txt \
+       locale/zh_CN/LC_MESSAGES/ecere.mo \
+       locale/es_ES/LC_MESSAGES/ecere.mo
 
 
 # TOOLCHAIN
@@ -250,7 +846,7 @@ EAR := $(call psep,../obj/$(PLATFORM)/bin/ear)
 
 # FLAGS
 
-CFLAGS = -fmessage-length=0 -O2 -ffast-math -m32 $(FPIC) -w \
+CFLAGS += -fmessage-length=0 -O2 -ffast-math -m32 $(FPIC) -w \
         -DBUILDING_ECERE_COM \
         -Isrc/gfx/drivers/harfbuzz
 
@@ -258,40 +854,45 @@ CECFLAGS =
 
 ECFLAGS = -nolinenumbers -defaultns ecere
 
-OFLAGS = -m32
+OFLAGS += -m32
 
 LIBS = -ljpeg -lpng -lz -lfreetype $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
 
 UPXFLAGS = -9 -q
 
 # HARD CODED PLATFORM-SPECIFIC OPTIONS
-ifdef LINUX
+ifdef LINUX_TARGET
 OFLAGS += -Wl,--no-undefined
 endif
 
+ifdef OSX
+OFLAGS += -framework cocoa -framework OpenGL
+endif
+
 # PLATFORM-SPECIFIC OPTIONS
 
-ifdef WINDOWS
+ifdef WINDOWS_TARGET
 
 CFLAGS += \
+        -isystem ../deps/glext \
         -I../deps/DirectX-9.0/include \
         -I../deps/jpeg-6b \
         -I../deps/libpng-1.4.0 \
         -I../deps/libungif-4.1.1/lib \
         -I../deps/zlib \
-        -I../deps/freetype-2.3.5/include
+        -I../deps/freetype-2.3.12/include
 
 OFLAGS += \
         -L../deps/zlib/obj/release.$(PLATFORM) \
         -L../deps/jpeg-6b/obj/release.$(PLATFORM) \
         -L../deps/libpng-1.4.0/obj/release.$(PLATFORM) \
         -L../deps/libungif-4.1.1/obj/release.$(PLATFORM) \
-        -L../deps/freetype-2.3.5/obj/release.$(PLATFORM)
+        -L../deps/freetype-2.3.12/obj/release.$(PLATFORM)
 
 LIBS += -ldxguid -lddraw -ldinput -lwinmm -lopengl32 -lws2_32 -lkernel32 -luser32 -lgdi32 -lmpr -ladvapi32 -lshell32 -lwinspool -limm32 -lungif
 
 else
-ifdef LINUX
+ifdef LINUX_TARGET
 
 CFLAGS += \
         -I/usr/include/freetype2 \
@@ -304,7 +905,7 @@ OFLAGS += \
 LIBS += -lncurses -lpthread -lm -ldl -lfontconfig -lungif -lX11 -lXext -lXrender -lGL
 
 else
-ifdef OSX
+ifdef OSX_TARGET
 
 CFLAGS += \
         -I/usr/include/freetype2 \
@@ -342,21 +943,26 @@ $(OBJ)$(MODULE).main.c: $(OBJ)$(MODULE).main.ec
 
 $(SYMBOLS): | objdir
 $(OBJECTS): | objdir
+
 nores: $(SOURCES) $(RESOURCES) $(SYMBOLS) $(OBJECTS) | objdir
        $(CC) $(OFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET) $(INSTALLNAME)
+ifndef NOSTRIP
        $(STRIP) $(STRIPOPT) $(TARGET)
-ifdef WINDOWS
+endif
+ifdef WINDOWS_TARGET
        $(call cpq,$(TARGET),../compiler/bootstrap/obj/bin.$(PLATFORM)/)
 endif
        $(call cpq,$(TARGET),../$(SODESTDIR))
-ifdef LINUX
+ifdef LINUX_TARGET
        ln -sf $(LP)$(MODULE)$(SO).0.44 ../$(SODESTDIR)$(LP)$(MODULE)$(SO).0
        ln -sf $(LP)$(MODULE)$(SO).0.44 ../$(SODESTDIR)$(LP)$(MODULE)$(SO)
 endif  
 
 $(TARGET): $(SOURCES) $(RESOURCES) $(SYMBOLS) $(OBJECTS) | objdir
        $(CC) $(OFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET) $(SONAME) $(INSTALLNAME)
+ifndef NOSTRIP
        $(STRIP) $(STRIPOPT) $(TARGET)
+endif
        $(EAR) awq $(TARGET) $(RES)actions/editFind.png $(RES)actions/folderNew.png $(RES)actions/goDown.png $(RES)actions/goHome.png $(RES)actions/goNext.png $(RES)actions/goPrevious.png $(RES)actions/goUp.png $(RES)actions/listAdd.png $(RES)actions/listRemove.png $(RES)actions/viewRefresh.png "actions"
        $(EAR) awq $(TARGET) $(RES)actions/windowNew.png "actions"
        $(EAR) awq $(TARGET) $(RES)constructs/class.png $(RES)constructs/data.png $(RES)constructs/dataPrivate.png $(RES)constructs/dataType.png $(RES)constructs/enum.png $(RES)constructs/enumValue.png $(RES)constructs/event.png $(RES)constructs/library.png $(RES)constructs/method.png $(RES)constructs/methodPrivate.png "constructs"
@@ -374,8 +980,10 @@ $(TARGET): $(SOURCES) $(RESOURCES) $(SYMBOLS) $(OBJECTS) | objdir
        $(EAR) awq $(TARGET) $(RES)places/driveRemote.png $(RES)places/folder.png $(RES)places/folderRemote.png $(RES)places/networkServer.png $(RES)places/networkWorkgroup.png $(RES)places/brokenFolder.png "places"
        $(EAR) awq $(TARGET) $(RES)status/audioVolumeHigh.png $(RES)status/folderOpen.png "status"
        $(EAR) awq $(TARGET) $(RES)unicode/derivedGeneralCategoryStripped.txt "unicode"
+       $(EAR) awq $(TARGET) locale/zh_CN/LC_MESSAGES/ecere.mo "locale/zh_CN/LC_MESSAGES"
+       $(EAR) awq $(TARGET) locale/es_ES/LC_MESSAGES/ecere.mo "locale/es_ES/LC_MESSAGES"
        $(call cpq,$(TARGET),../$(SODESTDIR))
-ifdef LINUX
+ifdef LINUX_TARGET
        ln -sf $(LP)$(MODULE)$(SO).0.44 ../$(SODESTDIR)$(LP)$(MODULE)$(SO).0
        ln -sf $(LP)$(MODULE)$(SO).0.44 ../$(SODESTDIR)$(LP)$(MODULE)$(SO)
 endif  
@@ -439,6 +1047,9 @@ $(OBJ)unicode.sym: src/sys/unicode.ec
 $(OBJ)units.sym: src/sys/units.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/sys/units.ec -o $(OBJ)units.sym
 
+$(OBJ)i18n.sym: src/sys/i18n.ec
+       $(ECP) -DECERE_COM_MODULE $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/sys/i18n.ec -o $(OBJ)i18n.sym
+
 $(OBJ)Cube.sym: src/gfx/3D/meshes/Cube.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gfx/3D/meshes/Cube.ec -o $(OBJ)Cube.sym
 
@@ -520,6 +1131,9 @@ $(OBJ)OpenGLDisplayDriver.sym: src/gfx/drivers/OpenGLDisplayDriver.ec
 $(OBJ)Win32BitmapPrinterDisplayDriver.sym: src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec -o $(OBJ)Win32BitmapPrinterDisplayDriver.sym
 
+$(OBJ)CocoaOpenGLDisplayDriver.sym: src/gfx/drivers/CocoaOpenGLDisplayDriver.ec
+       $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gfx/drivers/CocoaOpenGLDisplayDriver.ec -o $(OBJ)CocoaOpenGLDisplayDriver.sym
+
 $(OBJ)Win32ConsoleDisplayDriver.sym: src/gfx/drivers/Win32ConsoleDisplayDriver.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gfx/drivers/Win32ConsoleDisplayDriver.ec -o $(OBJ)Win32ConsoleDisplayDriver.sym
 
@@ -601,6 +1215,12 @@ $(OBJ)Stacker.sym: src/gui/controls/Stacker.ec
 $(OBJ)PathBox.sym: src/gui/controls/PathBox.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/controls/PathBox.ec -o $(OBJ)PathBox.sym
 
+$(OBJ)ToolTip.sym: src/gui/controls/ToolTip.ec
+       $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/controls/ToolTip.ec -o $(OBJ)ToolTip.sym
+
+$(OBJ)SelectorBar.sym: src/gui/controls/SelectorBar.ec
+       $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/controls/SelectorBar.ec -o $(OBJ)SelectorBar.sym
+
 $(OBJ)ColorPicker.sym: src/gui/dialogs/ColorPicker.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/dialogs/ColorPicker.ec -o $(OBJ)ColorPicker.sym
 
@@ -622,6 +1242,12 @@ $(OBJ)ReplaceDialog.sym: src/gui/dialogs/ReplaceDialog.ec
 $(OBJ)WindowList.sym: src/gui/dialogs/WindowList.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/dialogs/WindowList.ec -o $(OBJ)WindowList.sym
 
+$(OBJ)CocoaDispatch.sym: src/gui/drivers/cocoa/CocoaDispatch.ec
+       $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/drivers/cocoa/CocoaDispatch.ec -o $(OBJ)CocoaDispatch.sym
+
+$(OBJ)CocoaInterface.sym: src/gui/drivers/cocoa/CocoaInterface.ec
+       $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/drivers/cocoa/CocoaInterface.ec -o $(OBJ)CocoaInterface.sym
+
 $(OBJ)NCursesInterface.sym: src/gui/drivers/NCursesInterface.ec
        $(ECP) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) -c src/gui/drivers/NCursesInterface.ec -o $(OBJ)NCursesInterface.sym
 
@@ -795,6 +1421,9 @@ $(OBJ)unicode.c: src/sys/unicode.ec $(OBJ)unicode.sym | $(SYMBOLS)
 $(OBJ)units.c: src/sys/units.ec $(OBJ)units.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/sys/units.ec -o $(OBJ)units.c -symbols $(OBJ)
 
+$(OBJ)i18n.c: src/sys/i18n.ec $(OBJ)i18n.sym | $(SYMBOLS)
+       $(ECC) -DECERE_COM_MODULE $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/sys/i18n.ec -o $(OBJ)i18n.c -symbols $(OBJ)
+
 $(OBJ)Cube.c: src/gfx/3D/meshes/Cube.ec $(OBJ)Cube.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gfx/3D/meshes/Cube.ec -o $(OBJ)Cube.c -symbols $(OBJ)
 
@@ -876,6 +1505,9 @@ $(OBJ)OpenGLDisplayDriver.c: src/gfx/drivers/OpenGLDisplayDriver.ec $(OBJ)OpenGL
 $(OBJ)Win32BitmapPrinterDisplayDriver.c: src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec $(OBJ)Win32BitmapPrinterDisplayDriver.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gfx/drivers/Win32BitmapPrinterDisplayDriver.ec -o $(OBJ)Win32BitmapPrinterDisplayDriver.c -symbols $(OBJ)
 
+$(OBJ)CocoaOpenGLDisplayDriver.c: src/gfx/drivers/CocoaOpenGLDisplayDriver.ec $(OBJ)CocoaOpenGLDisplayDriver.sym | $(SYMBOLS)
+       $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gfx/drivers/CocoaOpenGLDisplayDriver.ec -o $(OBJ)CocoaOpenGLDisplayDriver.c -symbols $(OBJ)
+
 $(OBJ)Win32ConsoleDisplayDriver.c: src/gfx/drivers/Win32ConsoleDisplayDriver.ec $(OBJ)Win32ConsoleDisplayDriver.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gfx/drivers/Win32ConsoleDisplayDriver.ec -o $(OBJ)Win32ConsoleDisplayDriver.c -symbols $(OBJ)
 
@@ -957,6 +1589,12 @@ $(OBJ)Stacker.c: src/gui/controls/Stacker.ec $(OBJ)Stacker.sym | $(SYMBOLS)
 $(OBJ)PathBox.c: src/gui/controls/PathBox.ec $(OBJ)PathBox.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/controls/PathBox.ec -o $(OBJ)PathBox.c -symbols $(OBJ)
 
+$(OBJ)ToolTip.c: src/gui/controls/ToolTip.ec $(OBJ)ToolTip.sym | $(SYMBOLS)
+       $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/controls/ToolTip.ec -o $(OBJ)ToolTip.c -symbols $(OBJ)
+
+$(OBJ)SelectorBar.c: src/gui/controls/SelectorBar.ec $(OBJ)SelectorBar.sym | $(SYMBOLS)
+       $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/controls/SelectorBar.ec -o $(OBJ)SelectorBar.c -symbols $(OBJ)
+
 $(OBJ)ColorPicker.c: src/gui/dialogs/ColorPicker.ec $(OBJ)ColorPicker.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/dialogs/ColorPicker.ec -o $(OBJ)ColorPicker.c -symbols $(OBJ)
 
@@ -978,6 +1616,12 @@ $(OBJ)ReplaceDialog.c: src/gui/dialogs/ReplaceDialog.ec $(OBJ)ReplaceDialog.sym
 $(OBJ)WindowList.c: src/gui/dialogs/WindowList.ec $(OBJ)WindowList.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/dialogs/WindowList.ec -o $(OBJ)WindowList.c -symbols $(OBJ)
 
+$(OBJ)CocoaDispatch.c: src/gui/drivers/cocoa/CocoaDispatch.ec $(OBJ)CocoaDispatch.sym | $(SYMBOLS)
+       $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/drivers/cocoa/CocoaDispatch.ec -o $(OBJ)CocoaDispatch.c -symbols $(OBJ)
+
+$(OBJ)CocoaInterface.c: src/gui/drivers/cocoa/CocoaInterface.ec $(OBJ)CocoaInterface.sym | $(SYMBOLS)
+       $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/drivers/cocoa/CocoaInterface.ec -o $(OBJ)CocoaInterface.c -symbols $(OBJ)
+
 $(OBJ)NCursesInterface.c: src/gui/drivers/NCursesInterface.ec $(OBJ)NCursesInterface.sym | $(SYMBOLS)
        $(ECC) $(CECFLAGS) $(ECFLAGS) $(CFLAGS) $(FVISIBILITY) -c src/gui/drivers/NCursesInterface.ec -o $(OBJ)NCursesInterface.c -symbols $(OBJ)
 
@@ -1160,6 +1804,9 @@ $(OBJ)DualPipe.c.o: src/sys/DualPipe.c
 $(OBJ)System.c.o: src/sys/System.c
        $(CC) $(CFLAGS) -c src/sys/System.c -o $(OBJ)System.c.o
 
+$(OBJ)i18n.o: $(OBJ)i18n.c
+       $(CC) -DECERE_COM_MODULE $(CFLAGS) $(FVISIBILITY) -c $(OBJ)i18n.c -o $(OBJ)i18n.o
+
 $(OBJ)Cube.o: $(OBJ)Cube.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)Cube.c -o $(OBJ)Cube.o
 
@@ -1211,6 +1858,15 @@ $(OBJ)PNGFormat.o: $(OBJ)PNGFormat.c
 $(OBJ)RGBFormat.o: $(OBJ)RGBFormat.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)RGBFormat.c -o $(OBJ)RGBFormat.o
 
+$(OBJ)harfbuzz-freetype.o: src/gfx/drivers/harfbuzz/unicode/harfbuzz-freetype.c
+       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/unicode/harfbuzz-freetype.c -o $(OBJ)harfbuzz-freetype.o
+
+$(OBJ)harfbuzz-unicode-tables.o: src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode-tables.c
+       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode-tables.c -o $(OBJ)harfbuzz-unicode-tables.o
+
+$(OBJ)harfbuzz-unicode.o: src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode.c
+       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/unicode/harfbuzz-unicode.c -o $(OBJ)harfbuzz-unicode.o
+
 $(OBJ)harfbuzz-arabic.o: src/gfx/drivers/harfbuzz/harfbuzz-arabic.c
        $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-arabic.c -o $(OBJ)harfbuzz-arabic.o
 
@@ -1220,9 +1876,6 @@ $(OBJ)harfbuzz-buffer.o: src/gfx/drivers/harfbuzz/harfbuzz-buffer.c
 $(OBJ)harfbuzz-gdef.o: src/gfx/drivers/harfbuzz/harfbuzz-gdef.c
        $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-gdef.c -o $(OBJ)harfbuzz-gdef.o
 
-$(OBJ)harfbuzz-global.o: src/gfx/drivers/harfbuzz/harfbuzz-global.c
-       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-global.c -o $(OBJ)harfbuzz-global.o
-
 $(OBJ)harfbuzz-gpos.o: src/gfx/drivers/harfbuzz/harfbuzz-gpos.c
        $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-gpos.c -o $(OBJ)harfbuzz-gpos.o
 
@@ -1256,6 +1909,12 @@ $(OBJ)harfbuzz-stream.o: src/gfx/drivers/harfbuzz/harfbuzz-stream.c
 $(OBJ)harfbuzz-tibetan.o: src/gfx/drivers/harfbuzz/harfbuzz-tibetan.c
        $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-tibetan.c -o $(OBJ)harfbuzz-tibetan.o
 
+$(OBJ)harfbuzz-impl.o: src/gfx/drivers/harfbuzz/harfbuzz-impl.c
+       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-impl.c -o $(OBJ)harfbuzz-impl.o
+
+$(OBJ)harfbuzz-thai.o: src/gfx/drivers/harfbuzz/harfbuzz-thai.c
+       $(CC) $(CFLAGS) -c src/gfx/drivers/harfbuzz/harfbuzz-thai.c -o $(OBJ)harfbuzz-thai.o
+
 $(OBJ)Direct3D8DisplayDriver.o: $(OBJ)Direct3D8DisplayDriver.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)Direct3D8DisplayDriver.c -o $(OBJ)Direct3D8DisplayDriver.o
 
@@ -1286,6 +1945,9 @@ $(OBJ)OpenGLDisplayDriver.o: $(OBJ)OpenGLDisplayDriver.c
 $(OBJ)Win32BitmapPrinterDisplayDriver.o: $(OBJ)Win32BitmapPrinterDisplayDriver.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)Win32BitmapPrinterDisplayDriver.c -o $(OBJ)Win32BitmapPrinterDisplayDriver.o
 
+$(OBJ)CocoaOpenGLDisplayDriver.o: $(OBJ)CocoaOpenGLDisplayDriver.c
+       $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)CocoaOpenGLDisplayDriver.c -o $(OBJ)CocoaOpenGLDisplayDriver.o
+
 $(OBJ)Win32ConsoleDisplayDriver.o: $(OBJ)Win32ConsoleDisplayDriver.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)Win32ConsoleDisplayDriver.c -o $(OBJ)Win32ConsoleDisplayDriver.o
 
@@ -1367,6 +2029,12 @@ $(OBJ)Stacker.o: $(OBJ)Stacker.c
 $(OBJ)PathBox.o: $(OBJ)PathBox.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)PathBox.c -o $(OBJ)PathBox.o
 
+$(OBJ)ToolTip.o: $(OBJ)ToolTip.c
+       $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)ToolTip.c -o $(OBJ)ToolTip.o
+
+$(OBJ)SelectorBar.o: $(OBJ)SelectorBar.c
+       $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)SelectorBar.c -o $(OBJ)SelectorBar.o
+
 $(OBJ)ColorPicker.o: $(OBJ)ColorPicker.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)ColorPicker.c -o $(OBJ)ColorPicker.o
 
@@ -1388,6 +2056,18 @@ $(OBJ)ReplaceDialog.o: $(OBJ)ReplaceDialog.c
 $(OBJ)WindowList.o: $(OBJ)WindowList.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)WindowList.c -o $(OBJ)WindowList.o
 
+$(OBJ)CocoaDispatch.o: $(OBJ)CocoaDispatch.c
+       $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)CocoaDispatch.c -o $(OBJ)CocoaDispatch.o
+
+$(OBJ)CocoaEcereBridge.o: src/gui/drivers/cocoa/CocoaEcereBridge.m
+       $(CC) $(CFLAGS) -c src/gui/drivers/cocoa/CocoaEcereBridge.m -o $(OBJ)CocoaEcereBridge.o
+
+$(OBJ)CocoaInterface.o: $(OBJ)CocoaInterface.c
+       $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)CocoaInterface.c -o $(OBJ)CocoaInterface.o
+
+$(OBJ)EcereView.o: src/gui/drivers/cocoa/EcereView.m
+       $(CC) $(CFLAGS) -c src/gui/drivers/cocoa/EcereView.m -o $(OBJ)EcereView.o
+
 $(OBJ)NCursesInterface.o: $(OBJ)NCursesInterface.c
        $(CC) $(CFLAGS) $(FVISIBILITY) -c $(OBJ)NCursesInterface.c -o $(OBJ)NCursesInterface.o
 
@@ -1523,6 +2203,7 @@ clean: objdir
        $(call rmq,$(IMPORTS1))
        $(call rmq,$(IMPORTS2))
        $(call rmq,$(IMPORTS3))
+       $(call rmq,$(IMPORTS4))
        $(call rmq,$(SYMBOLS1))
        $(call rmq,$(SYMBOLS2))
        $(call rmq,$(SYMBOLS3))