3 # This file was automatically generated by tmake at 19:46, 1999/08/12
4 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
8 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
11 # Copyright:(c) 1993, AIAI, University of Edinburgh,
12 # Copyright:(c) 1999, Vadim Zeitlin
13 # Copyright:(c) 1999, Robert Roebling
15 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
17 ###################################################################
19 include ./src/make.env
21 ############## override make.env for PIC ##########################
23 # Clears all default suffixes
24 .SUFFIXES: .o .cpp .c .cxx
27 $(CCC) -c $(CFLAGS) $(PICFLAGS) -o $@ $<
30 $(CC) -c $(CPPFLAGS) $(PICFLAGS) -o $@ $<
33 $(CC) -c $(CPPFLAGS) $(PICFLAGS) -o $@ $<
35 ########################### Paths #################################
41 top_srcdir = @top_srcdir@
43 exec_prefix = @exec_prefix@
47 libexecdir = @libexecdir@
49 sysconfdir = @sysconfdir@
50 sharedstatedir = @sharedstatedir@
51 localstatedir = @localstatedir@
55 includedir = @includedir@
56 oldincludedir = /usr/include
60 pkgdatadir = $(datadir)/@PACKAGE@
61 pkglibdir = $(libdir)/@PACKAGE@
62 pkgincludedir = $(includedir)/@PACKAGE@
67 INSTALL_PROGRAM = @INSTALL_PROGRAM@
68 INSTALL_DATA = @INSTALL_DATA@
69 INSTALL_SCRIPT = @INSTALL_SCRIPT@
70 transform = @program_transform_name@
78 build_alias = @build_alias@
79 build_triplet = @build@
80 host_alias = @host_alias@
82 target_alias = @target_alias@
83 target_triplet = @target@
85 ############################# Dirs #################################
89 # Subordinate library possibilities
91 GENDIR = $(WXDIR)/src/generic
92 COMMDIR = $(WXDIR)/src/common
93 HTMLDIR = $(WXDIR)/src/html
94 UNIXDIR = $(WXDIR)/src/unix
95 PNGDIR = $(WXDIR)/src/png
96 JPEGDIR = $(WXDIR)/src/jpeg
97 ZLIBDIR = $(WXDIR)/src/zlib
98 GTKDIR = $(WXDIR)/src/gtk
99 MOTIFDIR = $(WXDIR)/src/motif
100 INCDIR = $(WXDIR)/include
102 DOCDIR = $(WXDIR)/docs
104 ############################## Files ##################################
450 html/htmlwinparser.h \
455 src/generic/busyinfo.o \
456 src/generic/caret.o \
457 src/generic/choicdgg.o \
458 src/generic/colrdlgg.o \
459 src/generic/dcpsg.o \
460 src/generic/dirdlgg.o \
461 src/generic/fontdlgg.o \
462 src/generic/gridg.o \
463 src/generic/imaglist.o \
464 src/generic/laywin.o \
465 src/generic/listctrl.o \
466 src/generic/msgdlgg.o \
467 src/generic/numdlgg.o \
468 src/generic/panelg.o \
469 src/generic/printps.o \
470 src/generic/prntdlgg.o \
471 src/generic/progdlgg.o \
473 src/generic/propform.o \
474 src/generic/proplist.o \
475 src/generic/sashwin.o \
476 src/generic/scrolwin.o \
477 src/generic/splitter.o \
478 src/generic/statusbr.o \
479 src/generic/textdlgg.o \
480 src/generic/tipdlg.o \
481 src/generic/treectrl.o
485 src/common/cmndata.o \
486 src/common/config.o \
488 src/common/datstrm.o \
490 src/common/dbtable.o \
491 src/common/dcbase.o \
492 src/common/dlgcmn.o \
493 src/common/docmdi.o \
494 src/common/docview.o \
495 src/common/dynarray.o \
496 src/common/dynlib.o \
498 src/common/extended.o \
501 src/common/fileconf.o \
502 src/common/filefn.o \
503 src/common/filesys.o \
504 src/common/framecmn.o \
505 src/common/fs_inet.o \
506 src/common/fs_zip.o \
508 src/common/gdicmn.o \
510 src/common/helpbase.o \
512 src/common/imagbmp.o \
514 src/common/imaggif.o \
515 src/common/imagjpeg.o \
516 src/common/imagpng.o \
518 src/common/ipcbase.o \
519 src/common/layout.o \
522 src/common/memory.o \
523 src/common/mimetype.o \
524 src/common/module.o \
525 src/common/mstream.o \
526 src/common/object.o \
527 src/common/objstrm.o \
529 src/common/prntbase.o \
530 src/common/process.o \
531 src/common/protocol.o \
532 src/common/resource.o \
533 src/common/sckaddr.o \
534 src/common/sckfile.o \
535 src/common/sckipc.o \
536 src/common/sckstrm.o \
538 src/common/socket.o \
539 src/common/strconv.o \
540 src/common/stream.o \
541 src/common/string.o \
542 src/common/tbarbase.o \
543 src/common/tbarsmpl.o \
544 src/common/textcmn.o \
545 src/common/textfile.o \
547 src/common/timercmn.o \
548 src/common/tokenzr.o \
549 src/common/txtstrm.o \
552 src/common/utilscmn.o \
553 src/common/valgen.o \
554 src/common/validate.o \
555 src/common/valtext.o \
556 src/common/variant.o \
557 src/common/wfstream.o \
558 src/common/wincmn.o \
559 src/common/wxchar.o \
560 src/common/wxexpr.o \
561 src/common/zipstrm.o \
623 MOTIF_GENERICOBJS = \
624 src/generic/busyinfo.o \
625 src/generic/caret.o \
626 src/generic/choicdgg.o \
627 src/generic/colrdlgg.o \
628 src/generic/dcpsg.o \
629 src/generic/dirdlgg.o \
630 src/generic/fontdlgg.o \
631 src/generic/gridg.o \
632 src/generic/helpxlp.o \
633 src/generic/imaglist.o \
634 src/generic/laywin.o \
635 src/generic/listctrl.o \
636 src/generic/msgdlgg.o \
637 src/generic/notebook.o \
638 src/generic/numdlgg.o \
639 src/generic/panelg.o \
640 src/generic/printps.o \
641 src/generic/prntdlgg.o \
642 src/generic/progdlgg.o \
644 src/generic/propform.o \
645 src/generic/proplist.o \
646 src/generic/sashwin.o \
647 src/generic/scrolwin.o \
648 src/generic/splitter.o \
649 src/generic/statusbr.o \
651 src/generic/textdlgg.o \
652 src/generic/tipdlg.o \
653 src/generic/treectrl.o
657 src/common/choiccmn.o \
658 src/common/cmndata.o \
659 src/common/config.o \
660 src/common/ctrlcmn.o \
662 src/common/datstrm.o \
664 src/common/dbtable.o \
665 src/common/dcbase.o \
666 src/common/dlgcmn.o \
667 src/common/docmdi.o \
668 src/common/docview.o \
669 src/common/dynarray.o \
670 src/common/dynlib.o \
672 src/common/extended.o \
675 src/common/fileconf.o \
676 src/common/filefn.o \
677 src/common/filesys.o \
678 src/common/framecmn.o \
679 src/common/fs_inet.o \
680 src/common/fs_zip.o \
682 src/common/gdicmn.o \
684 src/common/helpbase.o \
686 src/common/imagbmp.o \
688 src/common/imaggif.o \
689 src/common/imagjpeg.o \
690 src/common/imagpng.o \
692 src/common/ipcbase.o \
693 src/common/layout.o \
696 src/common/memory.o \
697 src/common/mimetype.o \
698 src/common/module.o \
699 src/common/mstream.o \
700 src/common/object.o \
701 src/common/objstrm.o \
704 src/common/prntbase.o \
705 src/common/process.o \
706 src/common/protocol.o \
707 src/common/resource.o \
708 src/common/sckaddr.o \
709 src/common/sckfile.o \
710 src/common/sckipc.o \
711 src/common/sckstrm.o \
713 src/common/socket.o \
714 src/common/strconv.o \
715 src/common/stream.o \
716 src/common/string.o \
717 src/common/tbarbase.o \
718 src/common/tbarsmpl.o \
719 src/common/textcmn.o \
720 src/common/textfile.o \
722 src/common/timercmn.o \
723 src/common/tokenzr.o \
724 src/common/txtstrm.o \
727 src/common/utilscmn.o \
728 src/common/valgen.o \
729 src/common/validate.o \
730 src/common/valtext.o \
731 src/common/variant.o \
732 src/common/wfstream.o \
733 src/common/wincmn.o \
734 src/common/wxchar.o \
735 src/common/wxexpr.o \
736 src/common/zipstrm.o \
740 src/motif/xmcombo/xmcombo.o \
744 src/motif/bmpbuttn.o \
747 src/motif/checkbox.o \
749 src/motif/clipbrd.o \
751 src/motif/combobox.o \
752 src/motif/control.o \
755 src/motif/dataobj.o \
757 src/motif/dcclient.o \
758 src/motif/dcmemory.o \
759 src/motif/dcscreen.o \
761 src/motif/filedlg.o \
766 src/motif/gsockmot.o \
768 src/motif/listbox.o \
772 src/motif/menuitem.o \
773 src/motif/minifram.o \
775 src/motif/palette.o \
777 src/motif/radiobox.o \
778 src/motif/radiobut.o \
780 src/motif/scrolbar.o \
781 src/motif/settings.o \
783 src/motif/statbmp.o \
784 src/motif/statbox.o \
785 src/motif/stattext.o \
786 src/motif/textctrl.o \
788 src/motif/toolbar.o \
793 src/html/htmlcell.o \
794 src/html/htmlfilter.o \
795 src/html/htmlhelp.o \
796 src/html/htmlhelp_io.o \
797 src/html/htmlparser.o \
800 src/html/htmlwinparser.o \
801 src/html/mod_fonts.o \
802 src/html/mod_hline.o \
803 src/html/mod_image.o \
804 src/html/mod_layout.o \
805 src/html/mod_links.o \
806 src/html/mod_list.o \
808 src/html/mod_tables.o \
813 src/unix/threadpsx.o \
818 src/zlib/compress.o \
826 src/zlib/infblock.o \
827 src/zlib/inftrees.o \
828 src/zlib/infcodes.o \
855 src/jpeg/jmemnobs.o \
856 src/jpeg/jcapimin.o \
857 src/jpeg/jcapistd.o \
860 src/jpeg/jdatadst.o \
862 src/jpeg/jcmaster.o \
863 src/jpeg/jcmarker.o \
864 src/jpeg/jcmainct.o \
865 src/jpeg/jcprepct.o \
866 src/jpeg/jccoefct.o \
868 src/jpeg/jcsample.o \
871 src/jpeg/jcdctmgr.o \
872 src/jpeg/jfdctfst.o \
873 src/jpeg/jfdctflt.o \
874 src/jpeg/jfdctint.o \
875 src/jpeg/jdapimin.o \
876 src/jpeg/jdapistd.o \
878 src/jpeg/jdatasrc.o \
879 src/jpeg/jdmaster.o \
881 src/jpeg/jdmarker.o \
884 src/jpeg/jdmainct.o \
885 src/jpeg/jdcoefct.o \
886 src/jpeg/jdpostct.o \
887 src/jpeg/jddctmgr.o \
888 src/jpeg/jidctfst.o \
889 src/jpeg/jidctflt.o \
890 src/jpeg/jidctint.o \
891 src/jpeg/jidctred.o \
892 src/jpeg/jdsample.o \
899 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(HTMLOBJS) $(UNIXOBJS) \
900 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
902 HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
903 $(GENERIC_HEADERS) $(WX_HEADERS)
905 REQUIRED_DIRS = ./lib ./src ./src/common ./src/gtk ./src/motif \
906 ./src/generic ./src/unix ./src/motif/xmombo ./src/html \
907 ./src/zlib ./src/jpeg ./src/png
909 all: $(REQUIRED_DIRS) $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
911 $(REQUIRED_DIRS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
912 @if test ! -d ./lib; then mkdir ./lib; fi
913 @if test ! -d ./src; then mkdir ./src; fi
914 @if test ! -d ./src/common; then mkdir ./src/common; fi
915 @if test ! -d ./src/gtk; then mkdir ./src/gtk; fi
916 @if test ! -d ./src/motif; then mkdir ./src/motif; fi
917 @if test ! -d ./src/motif/xmcombo; then mkdir ./src/motif/xmcombo; fi
918 @if test ! -d ./src/generic; then mkdir ./src/generic; fi
919 @if test ! -d ./src/unix; then mkdir ./src/unix; fi
920 @if test ! -d ./src/html; then mkdir ./src/html; fi
921 @if test ! -d ./src/png; then mkdir ./src/png; fi
922 @if test ! -d ./src/jpeg; then mkdir ./src/jpeg; fi
923 @if test ! -d ./src/zlib; then mkdir ./src/zlib; fi
925 @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
926 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
929 @WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
930 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
932 CREATE_LINKS: ./lib/@WX_TARGET_LIBRARY@
933 @if test -e ./lib/@WX_LIBRARY_LINK1@; then rm -f ./lib/@WX_LIBRARY_LINK1@; fi
934 @if test -e ./lib/@WX_LIBRARY_LINK2@; then rm -f ./lib/@WX_LIBRARY_LINK2@; fi
935 @if test -e ./lib/@WX_LIBRARY_LINK3@; then rm -f ./lib/@WX_LIBRARY_LINK3@; fi
936 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
937 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
938 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
940 CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
941 @if test -e $(libdir)/@WX_LIBRARY_LINK1@; then rm -f $(libdir)/@WX_LIBRARY_LINK1@; fi
942 @if test -e $(libdir)/@WX_LIBRARY_LINK2@; then rm -f $(libdir)/@WX_LIBRARY_LINK2@; fi
943 @if test -e $(libdir)/@WX_LIBRARY_LINK3@; then rm -f $(libdir)/@WX_LIBRARY_LINK3@; fi
944 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
945 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
946 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
948 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
950 parser.o: parser.c lexer.c
951 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
953 parser.c: $(COMMDIR)/parser.y lexer.c
954 $(YACC) $(COMMDIR)/parser.y
955 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
956 sed -e "s/BUFSIZ/5000/g" | \
957 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
958 sed -e "s/yy/PROIO_yy/g" | \
959 sed -e "s/input/PROIO_input/g" | \
960 sed -e "s/unput/PROIO_unput/g" > parser.c
963 lexer.c: $(COMMDIR)/lexer.l
964 $(LEX) $(COMMDIR)/lexer.l
965 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
966 sed -e "s/yy/PROIO_yy/g" | \
967 sed -e "s/input/PROIO_input/g" | \
968 sed -e "s/unput/PROIO_unput/g" > lexer.c
971 preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
973 @echo " Installing wxWindows..."
976 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
977 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
979 @if test ! -d $(libdir)/wx; then mkdir $(libdir)/wx; fi
980 @if test ! -d $(libdir)/wx/include; then mkdir $(libdir)/wx/include; fi
981 @if test ! -d $(libdir)/wx/include/wx; then mkdir $(libdir)/wx/include/wx; fi
982 @if test ! -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then mkdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
983 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
985 @if test ! -d $(includedir)/wx; then mkdir $(includedir)/wx; fi
986 @if test ! -d $(includedir)/wx/gtk; then mkdir $(includedir)/wx/gtk; fi
987 @if test ! -d $(includedir)/wx/motif; then mkdir $(includedir)/wx/motif; fi
988 @if test ! -d $(includedir)/wx/html; then mkdir $(includedir)/wx/html; fi
989 @if test ! -d $(includedir)/wx/protocol; then mkdir $(includedir)/wx/protocol; fi
990 @if test ! -d $(includedir)/wx/unix; then mkdir $(includedir)/wx/unix; fi
991 @if test ! -d $(includedir)/wx/generic; then mkdir $(includedir)/wx/generic; fi
992 @list='$(HEADERS)'; for p in $$list; do \
993 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
994 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
999 @echo " The installation of wxWindows is finished. On certain"
1000 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
1001 @echo " ldconfig if you installed a shared library."
1003 @echo " wxWindows comes with no guarantees and doesn't claim"
1004 @echo " to be suitable for any purpose."
1006 @echo " Read the wxWindows Licence on licencing conditions."
1009 install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
1013 @echo " Uninstalling wxWindows..."
1015 @echo " Removing library..."
1016 @rm -f $(libdir)/@WX_TARGET_LIBRARY@
1017 @rm -f $(libdir)/@WX_LIBRARY_LINK1@
1018 @rm -f $(libdir)/@WX_LIBRARY_LINK2@
1019 @rm -f $(libdir)/@WX_LIBRARY_LINK3@
1020 @echo " Removing helper files..."
1021 @rm -f $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
1022 @rm -f $(bindir)/wx-config
1023 @echo " Removing headers..."
1024 @list='$(HEADERS)'; for p in $$list; do \
1025 rm -f $(includedir)/wx/$$p; \
1027 @echo " Removing directories..."
1028 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
1029 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
1030 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
1031 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
1032 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
1033 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
1034 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
1035 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
1036 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
1037 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
1038 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
1043 rm -f ./src/motif/*.o
1044 rm -f ./src/html/*.o
1045 rm -f ./src/common/*.o
1046 rm -f ./src/unix/*.o
1047 rm -f ./src/generic/*.o
1049 rm -f ./src/jpeg/*.o
1050 rm -f ./src/zlib/*.o