2 # This file was automatically generated by tmake at 13:41, 1999/08/21
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 ##################################
563 html/htmlwinparser.h \
915 MOTIF_GENERICOBJS = \
951 MOTIF_GENERICDEPS = \
1073 MOTIF_COMMONDEPS = \
1774 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
1775 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
1777 DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS)
1779 HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
1780 $(GENERIC_HEADERS) $(WX_HEADERS)
1782 all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
1784 @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
1785 @$(INSTALL) -d ./lib
1786 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
1789 @WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
1790 @$(INSTALL) -d ./lib
1791 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
1793 CREATE_LINKS: ./lib/@WX_TARGET_LIBRARY@
1794 @$(RM) ./lib/@WX_LIBRARY_LINK1@
1795 @$(RM) ./lib/@WX_LIBRARY_LINK2@
1796 @$(RM) ./lib/@WX_LIBRARY_LINK3@
1797 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
1798 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
1799 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
1801 CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
1802 $(RM) $(libdir)/@WX_LIBRARY_LINK1@
1803 $(RM) $(libdir)/@WX_LIBRARY_LINK2@
1804 $(RM) $(libdir)/@WX_LIBRARY_LINK3@
1805 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
1806 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
1807 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
1809 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
1811 parser.o: parser.c lexer.c
1812 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
1814 parser.c: $(COMMDIR)/parser.y lexer.c
1815 $(YACC) $(COMMDIR)/parser.y
1816 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
1817 sed -e "s/BUFSIZ/5000/g" | \
1818 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
1819 sed -e "s/yy/PROIO_yy/g" | \
1820 sed -e "s/input/PROIO_input/g" | \
1821 sed -e "s/unput/PROIO_unput/g" > parser.c
1824 lexer.c: $(COMMDIR)/lexer.l
1825 $(LEX) $(COMMDIR)/lexer.l
1826 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
1827 sed -e "s/yy/PROIO_yy/g" | \
1828 sed -e "s/input/PROIO_input/g" | \
1829 sed -e "s/unput/PROIO_unput/g" > lexer.c
1832 -include $(DEPFILES)
1834 preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
1836 @echo " Installing wxWindows..."
1839 $(INSTALL) -d $(prefix)
1840 $(INSTALL) -d $(bindir)
1841 $(INSTALL) -d $(libdir)
1843 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
1844 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
1846 $(INSTALL) -d $(libdir)/wx
1847 $(INSTALL) -d $(libdir)/wx/include
1848 $(INSTALL) -d $(libdir)/wx/include/wx
1849 $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
1850 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
1852 $(INSTALL) -d $(includedir)/wx
1853 $(INSTALL) -d $(includedir)/wx/msw
1854 $(INSTALL) -d $(includedir)/wx/gtk
1855 $(INSTALL) -d $(includedir)/wx/motif
1856 $(INSTALL) -d $(includedir)/wx/html
1857 $(INSTALL) -d $(includedir)/wx/protocol
1858 $(INSTALL) -d $(includedir)/wx/unix
1859 $(INSTALL) -d $(includedir)/wx/generic
1860 @list='$(HEADERS)'; for p in $$list; do \
1861 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
1862 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
1867 @echo " The installation of wxWindows is finished. On certain"
1868 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
1869 @echo " ldconfig if you installed a shared library."
1871 @echo " wxWindows comes with no guarantees and doesn't claim"
1872 @echo " to be suitable for any purpose."
1874 @echo " Read the wxWindows Licence on licencing conditions."
1877 install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
1881 @echo " Uninstalling wxWindows..."
1883 @echo " Removing library..."
1884 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
1885 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
1886 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
1887 @$(RM) $(libdir)/@WX_LIBRARY_LINK3@
1888 @echo " Removing helper files..."
1889 @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
1890 @$(RM) $(bindir)/wx-config
1891 @echo " Removing headers..."
1892 @list='$(HEADERS)'; for p in $$list; do \
1893 $(RM) $(includedir)/wx/$$p; \
1895 @echo " Removing directories..."
1896 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
1897 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
1898 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
1899 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
1900 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
1901 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
1902 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/msw; fi
1903 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
1904 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
1905 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
1906 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
1907 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
1912 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
1913 cp $(WXDIR)/configure $(DISTDIR)
1914 cp $(WXDIR)/config.sub $(DISTDIR)
1915 cp $(WXDIR)/config.guess $(DISTDIR)
1916 cp $(WXDIR)/install-sh $(DISTDIR)
1917 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
1918 cp $(WXDIR)/wx-config.in $(DISTDIR)
1919 cp $(WXDIR)/setup.h.in $(DISTDIR)
1920 cp $(WXDIR)/Makefile.in $(DISTDIR)
1921 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
1922 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
1923 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
1924 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
1925 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
1926 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
1927 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
1928 mkdir $(DISTDIR)/include
1929 mkdir $(DISTDIR)/include/wx
1930 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
1931 mkdir $(DISTDIR)/include/wx/generic
1932 mkdir $(DISTDIR)/include/wx/html
1933 mkdir $(DISTDIR)/include/wx/unix
1934 mkdir $(DISTDIR)/include/wx/protocol
1935 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
1936 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
1937 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
1938 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
1939 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
1940 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
1941 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
1942 mkdir $(DISTDIR)/src
1943 mkdir $(DISTDIR)/src/common
1944 mkdir $(DISTDIR)/src/generic
1945 mkdir $(DISTDIR)/src/html
1946 mkdir $(DISTDIR)/src/html/bitmaps
1947 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
1948 mkdir $(DISTDIR)/src/unix
1949 mkdir $(DISTDIR)/src/png
1950 mkdir $(DISTDIR)/src/jpeg
1951 mkdir $(DISTDIR)/src/zlib
1952 cp $(SRCDIR)/*.in $(DISTDIR)/src
1953 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
1954 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
1955 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
1956 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
1957 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
1958 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
1959 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
1960 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
1961 cp $(HTMLDIR)/*.h $(DISTDIR)/src/html
1962 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
1963 cp $(UNIXDIR)/*.h $(DISTDIR)/src/unix
1964 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
1965 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
1966 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
1967 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
1968 cp $(PNGDIR)/README $(DISTDIR)/src/png
1969 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
1970 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
1971 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
1972 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
1973 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
1974 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
1977 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
1978 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
1979 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
1980 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
1981 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
1982 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
1985 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
1986 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
1987 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
1988 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
1989 mkdir $(DISTDIR)/src/motif/xmcombo
1990 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
1991 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
1992 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
1995 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
1996 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
1997 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
1998 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
1999 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
2000 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
2001 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
2002 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
2003 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
2004 mkdir $(DISTDIR)/src/msw/ole
2005 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
2008 mkdir $(DISTDIR)/samples
2009 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
2010 mkdir $(DISTDIR)/samples/bombs
2011 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
2012 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
2013 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
2014 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
2015 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
2016 mkdir $(DISTDIR)/samples/caret
2017 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
2018 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
2019 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
2020 mkdir $(DISTDIR)/samples/config
2021 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
2022 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
2023 mkdir $(DISTDIR)/samples/controls
2024 mkdir $(DISTDIR)/samples/controls/icons
2025 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
2026 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
2027 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
2028 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
2029 mkdir $(DISTDIR)/samples/checklst
2030 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
2031 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
2032 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
2033 mkdir $(DISTDIR)/samples/checkls
2034 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
2035 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
2036 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
2037 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
2038 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
2040 dist: ALL_DIST @GUIDIST@ SAMPLES_DIST
2041 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..