2 # This file was automatically generated by tmake at 19:37, 1999/08/24
3 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
7 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
10 # Copyright:(c) 1993, AIAI, University of Edinburgh,
11 # Copyright:(c) 1999, Vadim Zeitlin
12 # Copyright:(c) 1999, Robert Roebling
14 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
16 ###################################################################
18 include ./src/make.env
20 ############## override make.env for PIC ##########################
22 # Clears all default suffixes
23 .SUFFIXES: .o .cpp .c .cxx
26 $(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) -o $@ $<
29 $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
32 $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
34 ########################### Paths #################################
38 VP1 = @top_srcdir@/src/common
39 VP2 = @top_srcdir@/src/@TOOLKIT_DIR@
40 VP3 = @top_srcdir@/src/motif/xmcombo
41 VP4 = @top_srcdir@/src/generic
42 VP5 = @top_srcdir@/src/unix
43 VP6 = @top_srcdir@/src/html
44 VP7 = @top_srcdir@/src/png
45 VP8 = @top_srcdir@/src/jpeg
46 VP9 = @top_srcdir@/src/zlib
48 VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
50 top_srcdir = @top_srcdir@
52 exec_prefix = @exec_prefix@
56 libexecdir = @libexecdir@
58 sysconfdir = @sysconfdir@
59 sharedstatedir = @sharedstatedir@
60 localstatedir = @localstatedir@
64 includedir = @includedir@
65 oldincludedir = /usr/include
69 pkgdatadir = $(datadir)/@PACKAGE@
70 pkglibdir = $(libdir)/@PACKAGE@
71 pkgincludedir = $(includedir)/@PACKAGE@
76 INSTALL_PROGRAM = @INSTALL_PROGRAM@
77 INSTALL_DATA = @INSTALL_DATA@
78 # my autoconf doesn't set this
79 #INSTALL_SCRIPT = @INSTALL_SCRIPT@
80 # maybe do an additional chmod if needed?
81 INSTALL_SCRIPT = @INSTALL@
82 transform = @program_transform_name@
90 build_alias = @build_alias@
91 build_triplet = @build@
92 host_alias = @host_alias@
94 target_alias = @target_alias@
95 target_triplet = @target@
97 ############################# Dirs #################################
101 # Subordinate library possibilities
103 SRCDIR = $(WXDIR)/src
104 GENDIR = $(WXDIR)/src/generic
105 COMMDIR = $(WXDIR)/src/common
106 HTMLDIR = $(WXDIR)/src/html
107 UNIXDIR = $(WXDIR)/src/unix
108 PNGDIR = $(WXDIR)/src/png
109 JPEGDIR = $(WXDIR)/src/jpeg
110 ZLIBDIR = $(WXDIR)/src/zlib
111 GTKDIR = $(WXDIR)/src/gtk
112 MOTIFDIR = $(WXDIR)/src/motif
113 MSWDIR = $(WXDIR)/src/msw
114 INCDIR = $(WXDIR)/include
115 SAMPDIR = $(WXDIR)/samples
117 DOCDIR = $(WXDIR)/docs
119 ########################## Archive name ###############################
121 WXARCHIVE = wx$(TOOLKIT)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER).tgz
122 DISTDIR = ./_dist_dir/wx$(TOOLKIT)
124 ############################## Files ##################################
564 html/htmlwinparser.h \
916 MOTIF_GENERICOBJS = \
951 MOTIF_GENERICDEPS = \
1072 MOTIF_COMMONDEPS = \
1775 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
1776 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
1778 DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS)
1780 HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
1781 $(GENERIC_HEADERS) $(WX_HEADERS)
1783 all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
1785 @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
1786 @$(INSTALL) -d ./lib
1787 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
1790 @WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
1791 @$(INSTALL) -d ./lib
1792 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
1794 CREATE_LINKS: ./lib/@WX_TARGET_LIBRARY@
1795 @$(RM) ./lib/@WX_LIBRARY_LINK1@
1796 @$(RM) ./lib/@WX_LIBRARY_LINK2@
1797 @$(RM) ./lib/@WX_LIBRARY_LINK3@
1798 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
1799 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
1800 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
1802 CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
1803 $(RM) $(libdir)/@WX_LIBRARY_LINK1@
1804 $(RM) $(libdir)/@WX_LIBRARY_LINK2@
1805 $(RM) $(libdir)/@WX_LIBRARY_LINK3@
1806 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
1807 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
1808 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
1810 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
1812 parser.o: parser.c lexer.c
1813 $(CCLEX) -c $(CFLAGS) $(PICFLAGS) -o $@ parser.c
1815 parser.c: $(COMMDIR)/parser.y lexer.c
1816 $(YACC) $(COMMDIR)/parser.y
1817 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
1818 sed -e "s/BUFSIZ/5000/g" | \
1819 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
1820 sed -e "s/yy/PROIO_yy/g" | \
1821 sed -e "s/input/PROIO_input/g" | \
1822 sed -e "s/unput/PROIO_unput/g" > parser.c
1825 lexer.c: $(COMMDIR)/lexer.l
1826 $(LEX) $(COMMDIR)/lexer.l
1827 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
1828 sed -e "s/yy/PROIO_yy/g" | \
1829 sed -e "s/input/PROIO_input/g" | \
1830 sed -e "s/unput/PROIO_unput/g" > lexer.c
1833 -include $(DEPFILES)
1835 preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
1837 @echo " Installing wxWindows..."
1840 $(INSTALL) -d $(prefix)
1841 $(INSTALL) -d $(bindir)
1842 $(INSTALL) -d $(libdir)
1844 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
1845 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
1847 $(INSTALL) -d $(libdir)/wx
1848 $(INSTALL) -d $(libdir)/wx/include
1849 $(INSTALL) -d $(libdir)/wx/include/wx
1850 $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
1851 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
1853 $(INSTALL) -d $(includedir)/wx
1854 $(INSTALL) -d $(includedir)/wx/msw
1855 $(INSTALL) -d $(includedir)/wx/gtk
1856 $(INSTALL) -d $(includedir)/wx/motif
1857 $(INSTALL) -d $(includedir)/wx/html
1858 $(INSTALL) -d $(includedir)/wx/protocol
1859 $(INSTALL) -d $(includedir)/wx/unix
1860 $(INSTALL) -d $(includedir)/wx/generic
1861 @list='$(HEADERS)'; for p in $$list; do \
1862 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
1863 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
1868 @echo " The installation of wxWindows is finished. On certain"
1869 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
1870 @echo " ldconfig if you installed a shared library."
1872 @echo " wxWindows comes with no guarantees and doesn't claim"
1873 @echo " to be suitable for any purpose."
1875 @echo " Read the wxWindows Licence on licencing conditions."
1878 install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
1882 @echo " Uninstalling wxWindows..."
1884 @echo " Removing library..."
1885 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
1886 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
1887 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
1888 @$(RM) $(libdir)/@WX_LIBRARY_LINK3@
1889 @echo " Removing helper files..."
1890 @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
1891 @$(RM) $(bindir)/wx-config
1892 @echo " Removing headers..."
1893 @list='$(HEADERS)'; for p in $$list; do \
1894 $(RM) $(includedir)/wx/$$p; \
1896 @echo " Removing directories..."
1897 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
1898 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
1899 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
1900 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
1901 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
1902 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
1903 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/msw; fi
1904 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
1905 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
1906 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
1907 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
1908 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
1913 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
1914 cp $(WXDIR)/configure $(DISTDIR)
1915 cp $(WXDIR)/config.sub $(DISTDIR)
1916 cp $(WXDIR)/config.guess $(DISTDIR)
1917 cp $(WXDIR)/install-sh $(DISTDIR)
1918 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
1919 cp $(WXDIR)/wx-config.in $(DISTDIR)
1920 cp $(WXDIR)/setup.h.in $(DISTDIR)
1921 cp $(WXDIR)/Makefile.in $(DISTDIR)
1922 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
1923 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
1924 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
1925 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
1926 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
1927 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
1928 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
1929 mkdir $(DISTDIR)/include
1930 mkdir $(DISTDIR)/include/wx
1931 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
1932 mkdir $(DISTDIR)/include/wx/generic
1933 mkdir $(DISTDIR)/include/wx/html
1934 mkdir $(DISTDIR)/include/wx/unix
1935 mkdir $(DISTDIR)/include/wx/protocol
1936 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
1937 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
1938 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
1939 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
1940 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
1941 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
1942 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
1943 mkdir $(DISTDIR)/src
1944 mkdir $(DISTDIR)/src/common
1945 mkdir $(DISTDIR)/src/generic
1946 mkdir $(DISTDIR)/src/html
1947 mkdir $(DISTDIR)/src/html/bitmaps
1948 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
1949 mkdir $(DISTDIR)/src/unix
1950 mkdir $(DISTDIR)/src/png
1951 mkdir $(DISTDIR)/src/jpeg
1952 mkdir $(DISTDIR)/src/zlib
1953 cp $(SRCDIR)/*.in $(DISTDIR)/src
1954 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
1955 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
1956 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
1957 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
1958 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
1959 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
1960 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
1961 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
1962 cp $(HTMLDIR)/*.h $(DISTDIR)/src/html
1963 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
1964 cp $(UNIXDIR)/*.h $(DISTDIR)/src/unix
1965 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
1966 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
1967 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
1968 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
1969 cp $(PNGDIR)/README $(DISTDIR)/src/png
1970 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
1971 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
1972 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
1973 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
1974 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
1975 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
1978 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
1979 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
1980 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
1981 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
1982 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
1983 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
1986 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
1987 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
1988 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
1989 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
1990 mkdir $(DISTDIR)/src/motif/xmcombo
1991 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
1992 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
1993 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
1996 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
1997 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
1998 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
1999 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
2000 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
2001 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
2002 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
2003 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
2004 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
2005 mkdir $(DISTDIR)/src/msw/ole
2006 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
2009 mkdir $(DISTDIR)/samples
2010 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
2011 mkdir $(DISTDIR)/samples/bombs
2012 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
2013 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
2014 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
2015 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
2016 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
2017 mkdir $(DISTDIR)/samples/caret
2018 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
2019 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
2020 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
2021 mkdir $(DISTDIR)/samples/config
2022 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
2023 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
2024 mkdir $(DISTDIR)/samples/controls
2025 mkdir $(DISTDIR)/samples/controls/icons
2026 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
2027 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
2028 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
2029 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
2030 mkdir $(DISTDIR)/samples/checklst
2031 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
2032 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
2033 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
2034 mkdir $(DISTDIR)/samples/checkls
2035 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
2036 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
2037 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
2038 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
2039 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
2041 dist: ALL_DIST @GUIDIST@ SAMPLES_DIST
2042 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..