# Author: Julian Smart, Robert Roebling, Vadim Zeitlin, Ron Lee
# Created: 1993
# Version: $Id$
-# Copyright:(c) 1993, AIAI, University of Edinburgh,
+# Copyright:,
# Copyright:(c) 1999, Vadim Zeitlin
# Copyright:(c) 1999, Robert Roebling
# Copyright:(c) 2001, Ron Lee
# implicit rules (%.o: %.c) because they are more portable, in
# particular the BSD make understands the former but not the
# latter
-.SUFFIXES: .o .c .cpp .cxx .rsrc .r
+.SUFFIXES: .o .c .cpp .cxx .rsrc .r .mm
.c.o:
$(CC) -c $(CFLAGS) $(PICFLAGS) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
+# Objective-C++, right now just use CXXFLAGS
+.mm.o:
+ $(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
+
.rsrc.r:
$(DEREZ) $^ Carbon.r -useDF > $@
MSWDIR = $(WXDIR)/src/msw
PMDIR = $(WXDIR)/src/os2
MACDIR = $(WXDIR)/src/mac
+COCOADIR = $(WXDIR)/src/cocoa
ODBCDIR = $(WXDIR)/src/iodbc
FTDIR = $(WXDIR)/src/freetype
INCDIR = $(WXDIR)/include
# but this seems to result in problems with libwx_gtk being linked in twice
$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
@$(INSTALL_DIR) $(build_libdir)
- $(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o $(EXTRALIBS) $(OPENGLLIBS)
+ $(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o $(EXTRALIBS) $(LDFLAGS_GL) $(OPENGLLIBS)
$(build_libdir)/@WX_RESOURCES_MACOSX_DATA@: $(MACRESOURCES)
@$(INSTALL_DIR) $(build_libdir)
mkdir $(DISTDIR)/src/png
mkdir $(DISTDIR)/src/jpeg
mkdir $(DISTDIR)/src/tiff
- mkdir $(DISTDIR)/src/iodbc
mkdir $(DISTDIR)/src/unix
cp $(SRCDIR)/*.in $(DISTDIR)/src
cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
cp $(COMMDIR)/*.c $(DISTDIR)/src/common
cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
- cp $(COMMDIR)/*.l $(DISTDIR)/src/common
cp $(COMMDIR)/*.h $(DISTDIR)/src/common
- cp $(COMMDIR)/*.y $(DISTDIR)/src/common
cp $(COMMDIR)/*.mms $(DISTDIR)/src/common
cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
cp $(TIFFDIR)/*.h $(DISTDIR)/src/tiff
cp $(TIFFDIR)/*.c $(DISTDIR)/src/tiff
cp $(TIFFDIR)/README $(DISTDIR)/src/tiff
+ mkdir $(DISTDIR)/src/iodbc
cp $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
cp $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
cp $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
mkdir $(DISTDIR)/src/x11
mkdir $(DISTDIR)/include/wx/x11
- cp $(X11DIR)/pen.cpp $(X11DIR)/brush.cpp $(DISTDIR)/src/x11
+ cp $(X11DIR)/pen.cpp $(X11DIR)/brush.cpp $(X11DIR)/utilsx.cpp \
+ $(X11DIR)/bitmap.cpp $(X11DIR)/region.cpp \
+ $(DISTDIR)/src/x11
cp $(X11INC)/pen.h $(X11INC)/brush.h $(X11INC)/privx.h \
+ $(X11INC)/bitmap.h $(X11INC)/private.h $(X11INC)/region.h \
$(DISTDIR)/include/wx/x11
MACX_DIST: ALL_GUI_DIST
mkdir $(DISTDIR)/src/mac/macsock
cp $(MACDIR)/macsock/*.lib $(DISTDIR)/src/mac/macsock
+# TODO: Distribute some files
+COCOA_DIST: ALL_GUI_DIST
+ cp $(COCOADIR)/*.mm $(DISTDIR)/src/cocoa
+
MSW_DIST: ALL_GUI_DIST
cp $(WXDIR)/wxWINE.spec $(DISTDIR)
mkdir $(DISTDIR)/include/wx/msw/ctl3d
mkdir $(DISTDIR)/samples/grid
cp $(SAMPDIR)/grid/Makefile.in $(DISTDIR)/samples/grid
cp $(SAMPDIR)/grid/makefile.unx $(DISTDIR)/samples/grid
- cp $(SAMPDIR)/grid/*.cpp $(DISTDIR)/samples/grid
+ cp $(SAMPDIR)/grid/*.cpp $(SAMPDIR)/grid/*.h $(DISTDIR)/samples/grid
mkdir $(DISTDIR)/samples/help
mkdir $(DISTDIR)/samples/help/doc
cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
cp $(SAMPDIR)/dialup/*.cpp $(DISTDIR)/samples/dialup
- mkdir $(DISTDIR)/samples/newgrid
- cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
- cp $(SAMPDIR)/newgrid/makefile.unx $(DISTDIR)/samples/newgrid
- cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
- cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
-
mkdir $(DISTDIR)/samples/notebook
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
cp $(SAMPDIR)/notebook/makefile.unx $(DISTDIR)/samples/notebook
cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
- mkdir $(DISTDIR)/samples/resource
- cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
- cp $(SAMPDIR)/resource/makefile.unx $(DISTDIR)/samples/resource
- cp $(SAMPDIR)/resource/*.cpp $(DISTDIR)/samples/resource
- cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
- cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
+# mkdir $(DISTDIR)/samples/resource
+# cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
+# cp $(SAMPDIR)/resource/makefile.unx $(DISTDIR)/samples/resource
+# cp $(SAMPDIR)/resource/*.cpp $(DISTDIR)/samples/resource
+# cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
+# cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
mkdir $(DISTDIR)/samples/rotate
cp $(SAMPDIR)/rotate/Makefile.in $(DISTDIR)/samples/rotate
cp $(SAMPDIR)/richedit/README $(DISTDIR)/samples/richedit
cp $(SAMPDIR)/richedit/TODO $(DISTDIR)/samples/richedit
- mkdir $(DISTDIR)/samples/proplist
- cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
- cp $(SAMPDIR)/proplist/makefile.unx $(DISTDIR)/samples/proplist
- cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
- cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
+# mkdir $(DISTDIR)/samples/proplist
+# cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
+# cp $(SAMPDIR)/proplist/makefile.unx $(DISTDIR)/samples/proplist
+# cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
+# cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
mkdir $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/propsize/Makefile.in $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/treectrl/*.h $(DISTDIR)/samples/treectrl
cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
- mkdir $(DISTDIR)/samples/treelay
- cp $(SAMPDIR)/treelay/Makefile.in $(DISTDIR)/samples/treelay
- cp $(SAMPDIR)/treelay/makefile.unx $(DISTDIR)/samples/treelay
- cp $(SAMPDIR)/treelay/*.cpp $(DISTDIR)/samples/treelay
- cp $(SAMPDIR)/treelay/*.h $(DISTDIR)/samples/treelay
+# mkdir $(DISTDIR)/samples/treelay
+# cp $(SAMPDIR)/treelay/Makefile.in $(DISTDIR)/samples/treelay
+# cp $(SAMPDIR)/treelay/makefile.unx $(DISTDIR)/samples/treelay
+# cp $(SAMPDIR)/treelay/*.cpp $(DISTDIR)/samples/treelay
+# cp $(SAMPDIR)/treelay/*.h $(DISTDIR)/samples/treelay
mkdir $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest