From 8cc552aa6034019f57408e9c409f326496f917c2 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 30 Jan 2023 10:30:36 +0900 Subject: [PATCH 1/4] NetBSD Makefile --- Makefile | 3 + makefiles/Makefile.netbsd | 353 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 356 insertions(+) create mode 100755 makefiles/Makefile.netbsd diff --git a/Makefile b/Makefile index 2896a07..43a994b 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ dev_:: @echo " freebsd -- x86 running freebsd DYNAMIC" @echo " freebsd-static -- x86 running freebsd ALL STATIC" @echo " freebsd-static-motif -- x86 running freebsd STATIC MOTIF" + @echo " netbsd -- x86 running netbsd DYNAMIC" + @echo " netbsd-static -- x86 running netbsd ALL STATIC" + @echo " netbsd-static-motif -- x86 running netbsd STATIC MOTIF" @echo " linux -- x86 running Linux 1.2.13 DYNAMIC" @echo " linux-static -- x86 running Linux 1.2.13 ALL STATIC" @echo " linux-static-motif -- x86 running Linux 1.2.13 STATIC MOTIF" diff --git a/makefiles/Makefile.netbsd b/makefiles/Makefile.netbsd new file mode 100755 index 0000000..fda7f37 --- /dev/null +++ b/makefiles/Makefile.netbsd @@ -0,0 +1,353 @@ +# Toplevel Makefile for NCSA Mosaic. + +# You shouldn't need to touch any of the Makefiles in the various +# subdirectories if you configure this Makefile correctly. + +# If you need to make serious changes to get Mosaic to compile on your +# platform, send context diffs to mosaic-x@ncsa.uiuc.edu. + +# -------------------------- CUSTOMIZABLE OPTIONS ---------------------------- + +#prereleaseflags = -DPRERELEASE +prereleaseflags = -DPRERELEASE + +#RANLIB = /bin/true +#### On non-SGI's, this should be ranlib. +RANLIB = ranlib + +#CC = cc +#### On Sun's, this should be gcc (ANSI required). +CC = cc + +#### Linker Flags +ldflags = -R/usr/X11R7/lib -R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R7/lib + +#### For a few files in the source, some compilers may need to be kicked +#### in K&R mode. E.g., on SGI's, -cckr does this. +#knrflag = -cckr +#### On most systems, no flag is needed. +knrflag = + + +#### Random system configuration flags. +#### --> *** For Motif 1.2 ON ANY PLATFORM, do -DMOTIF1_2 *** <-- +#### For IBM AIX 3.2, do -D_BSD +#### For NeXT, do -DNEXT +#### For HP/UX, do -Aa -D_HPUX_SOURCE +#### For Dell SVR4, do -DSVR4 +#### For Solaris, do -DSVR4 +#### For Esix 4.0.4 and Solaris x86 2.1, do -DSVR4 +#### For Convex whatever, do -DCONVEX +#### For SCO ODT 3.0, do -DSCO -DSVR4 -DMOTIF1_2 +#### For Motorola SVR4, do -DSVR4 -DMOTOROLA -DMOTIF1_2 +sysconfigflags = -DMOTIF1_2 -DLINUX + +#### System libraries. +# syslibs = -lPW -lsun -lmalloc +#### For AIX 3.2 +# syslibs = -lPW -lbsd +#### For most other Motif platforms: +# syslibs = -lPW +#### For Sun's and Ultrix and HP and BSD/386: +# syslibs = +#### For Sun's with no DNS: +# syslibs = -lresolv +#### For SCO ODT: +# syslibs = -lPW -lsocket -lmalloc +#### For Dell SVR4: +# syslibs = -lnsl -lsocket -lc -lucb +#### For Solaris (?) +# syslibs = -lnsl -lsocket -lgen +#### For Motorola SVR4: +# syslibs = -lnsl -lsocket -lgen + +syslibs = -lc + +#### X include file locations -- if your platform puts the X include +#### files in a strange place, set this variable appropriately. Else +#### don't worry about it. +#### HP X11R4 version: +# xinc = -I/usr/include/Motif1.1 -I/usr/include/X11R4 +#### HP X11R5 version: +# xinc = -I/usr/include/Motif1.2 -I/usr/local/X11R5/include +#### NeXT version: +# xinc = -I/usr/include/X11 +#### BSD/386 +# xinc = -I/usr/X11/include + +#xinc = -I/usr/X11R6/include +xinc = -I/usr/X11R7/include + +#### X library locations. +# xlibs = -lXm_s -lXmu -lXt_s -lX11_s +#### For Sun's (at least running stock X/Motif as installed on our machines): +# xlibs = /usr/lib/libXm.a /usr/lib/libXmu.a /usr/lib/libXt.a /usr/lib/libXext.a /usr/lib/libX11.a -lm #### For HP-UX 8.00: +# xlibs = -L/usr/lib/Motif1.1 -lXm -L/usr/lib/X11R4 -lXmu -lXt -lX11 +#### For HP-UX 9.01: The X11R5 libraries are here on our systems +# xlibs = -L/usr/lib/Motif1.2 -lXm -L/usr/lib/X11R5 -L/usr/lib/X11R4 -lXmu -lXt -lX11 +#### For NeXT: +# xlibs = -L/usr/lib/X11 -lXm -lXmu -lXt -lX11 +#### For Dell SVR4: +# xlibs = -L/usr/X5/lib -lXm -lXmu -lXt -lXext -lX11 +#### For Solaris (?) +# xlibs = -lXm -lXmu -lXt -lXext -lX11 -lm +#### For SCO ODT 3.0 (I'm told that -lXtXm_s is *not* a typo :-): +# xlibs = -lXtXm_s -lXmu -lX11_s +#### For nearly everyone else: +# xlibs = -lXm -lXmu -lXt -lX11 +#### For Linux -- You must set "LD_LIBRARY_PATH" to include the path to +#### your X libs, or some may not be found by the loader. Check the +#### loader with "ldd Mosaic" after you build. +#xlibs = -L/usr/X11R6/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM +xlibs = -L/usr/local/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM + +static_motif_xlibs = -L/usr/X11R6/lib -lXext -lXpm /usr/X11R6/lib/libXm.a -lXmu -lXt -lX11 -lICE -lSM +static_xlibs = /usr/X11R6/lib/libXpm.a /usr/X11R6/lib/libXm.a /usr/X11R6/lib/libXmu.a /usr/X11R6/lib/libXt.a /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libX11.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a +#### For BSD/386: +# xlibs = -L/usr/X11/lib -lXm -lXmu -lXt -lX11 +#### For Motorola SVR4: +# xlibs = -lXm -lXmu -lXt -lXext -lX11 -lm + + +#### DTM AND HDF SUPPORT; READ CAREFULLY + +#### If you want to compile with DTM and HDF support, you should leave +#### the following lines uncommented and make sure you have a copy of +#### HDF 3.3 (r1 or later) installed and ready. You can find HDF on +#### ftp.ncsa.uiuc.edu in /HDF. + +#### If you do not want to compile with DTM and HDF support, comment +#### the following lines out. (If you are compiling from source for +#### the first time, you should probably not bother with HDF and DTM +#### support.) + +#### dtmmachtype needs to be set to one of the following: +#### sun, sgi, dec, ibm, next, cray, convex +#### If your platform is not one of the above, then either do not compile +#### with HDF/DTM support or try hacking libdtm/makefile. + +#dtmmachtype = sun +#dtmdirs = libdtm libnet +#dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a +#dtmflags = -DHAVE_DTM -I.. -I../libnet +#hdfdir = /hdf2/install/linux +#hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a +#hdfflags = -DHAVE_HDF -I$(hdfdir)/include + +#### PNG SUPPORT +#### For inline PNG support, the following should be defined: +#### The libraries currently used are PNGLIB 0.81 and ZLIB 0.95 + +# SAM pngdir = /xdev/mosaic/libpng/linux +# SAM pnglibdir = $(pngdir)/lib +# SAM pngincludedir = $(pngdir)/include +# SAM pnglibs = $(pnglibdir)/libpng.a $(pnglibdir)/libz.a /usr/lib/libm.a +# SAM pngflags = -I$(pngincludedir) -DHAVE_PNG +pnglibs = -lpng -lz -lm +pngflags = -DHAVE_PNG + +#### JPEG SUPPORT +#### For inline JPEG support, the following should be defined: +#### The library used is Independent JPEG Group (IJG's) 5.0a. + +# SAM jpegdir = /xdev/mosaic/libjpeg/linux +# SAM jpeglibs = $(jpegdir)/lib/libjpeg.a + #SAM jpegflags = -I$(jpegdir)/include -DHAVE_JPEG +jpeglibs = -ljpeg +jpegflags = -DHAVE_JPEG + + +#### KERBEROS SUPPORT +#### +#### If you want Mosaic to support Kerberos authentication, set the +#### following flags appropriately. You can support Kerberos V4 and/or V5, +#### although it's most likely that your realm supports one or the other. +#### To enable DES-encryption of HTTP messages via Kerberos key exchange, +#### define the KRB-ENCRYPT flag. + +##krb4dir = /usr/athena +#krb4dir = /xdev/mosaic/libkrb4/linux +#krb4libs = $(krb4dir)/lib/libkrb.a $(krb4dir)/lib/libdes.a +#krb4flags = -DKRB4 -I$(krb4dir)/include + +##krb5dir = /krb5 +#krb5dir = /xdev/mosaic/libkrb5/linux +#krb5libs = $(krb5dir)/lib/libkrb5.a $(krb5dir)/lib/libcrypto.a $(krb5dir)/util/et/libcom_err.a +#krb5flags = -DKRB5 -I$(krb5dir)/include -I$(krb5dir)/include/krb5 + +#Do not comment out. +krbflags = $(krb4flags) $(krb5flags) +krblibs = $(krb4libs) $(krb5libs) + + +#### DIRECT WAIS SUPPORT + +#### If you want to have Mosaic be able to communicate directly with +#### WAIS servers, do set the following flags appropriately. We +#### recommend linking with CNIDR's freeWAIS 0.5 distribution; other +#### WAIS distributions may work but we have not tested them with +#### Mosaic. freeWAIS 0.5 can currently (Sept.1995) be found at +#### ftp://sunsite.unc.edu/pub/wais/servers/freeWAIS + +#### If you do not wish to link to the WAIS libraries, then comment +#### the following lines out. Mosaic will then communicate with WAIS +#### servers via a HTTP gateway. + +#### -lm is required for freeWAIS 0.5, as ceil() is used. + +#waisroot = /xdev/mosaic/freeWAIS/linux +#waisflags = -DDIRECT_WAIS -I$(waisroot)/include +#waislibdir = $(waisroot)/bin +#waislibs = $(waislibdir)/inv.a $(waislibdir)/wais.a $(waislibdir)/libftw.a -lm + + +#### Customization flags: +#### . If you want Mosaic to come up with monochrome colors by default, +#### use -DMONO_DEFAULT +#### . If you want to define the default Mosaic home page, set +#### -DHOME_PAGE_DEFAULT=\\\"url\\\" +#### . If you want to define the default Mosaic documentation directory +#### (should be a URL), set -DDOCS_DIRECTORY_DEFAULT=\\\"url\\\" +#### . Other things you can define are spelled out in src/mosaic.h. +customflags = + + + + +######## +######## +#### NOTE! If you get errors because of the following line, it means +#### you are NOT using GNUs Make program. The following line is basically +#### for the developers at NCSA to customize the build process without +#### modifying the Makefiles, so you may comment it out without harm. +######## +######## +-include local-defines/$(DEV_ARCH) + + + +# ---------------------- END OF CUSTOMIZABLE OPTIONS ------------------------- + +# Disable certain warnings as we don't care for them +CWARNINGS = -Wall \ + -Wno-parentheses \ + -Wno-switch -Wno-switch-enum \ + -Wno-char-subscripts \ + -Wno-unused-result + +CFLAGS = -fcommon -g $(sysconfigflags) $(prereleaseflags) $(CWARNINGS) $(customflags) -I/usr/X11R7/include -I/usr/pkg/include + +# Don't worry about these -- for development purposes only. +PURIFY = purify +QUANTIFY = quantify + +default: $(dtmdirs) libwww2 libXmx libhtmlw libnut src + @echo \*\*\* Welcome to NCSA Mosaic. +purifyd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-purifyd + @echo \*\*\* Welcome to Purify'd NCSA Mosaic. +quantifyd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-quantifyd + @echo \*\*\* Welcome to Quantify'd NCSA Mosaic. +staticd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static + @echo \*\*\* Welcome to NCSA Mosaic linked static. +static_motifd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static-motif + @echo \*\*\* Welcome to NCSA Mosaic linked static for motif. +p_staticd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static-purifyd + @echo \*\*\* Welcome to Purify'd NCSA Mosaic linked static. +p_static_motifd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static-motif-purifyd + @echo \*\*\* Welcome to Purify'd NCSA Mosaic linked static for motif. +q_staticd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static-quantifyd + @echo \*\*\* Welcome to Quantify'd NCSA Mosaic linked static. +q_static_motifd: $(dtmdirs) libwww2 libXmx libhtmlw libnut src-static-motif-quantifyd + @echo \*\*\* Welcome to Quantify'd NCSA Mosaic linked static for motif. + +libXmx:: + @echo --- Building libXmx + cd libXmx; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(xinc)" + +libhtmlw:: + @echo --- Building libhtmlw + cd libhtmlw; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(knrflag) $(xinc) -DMOTIF -DXMOSAIC" + +libwww2:: + @echo --- Building libwww2 + cd libwww2; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(knrflag) $(waisflags) $(krbflags) $(xinc)" + +libnut:: + @echo --- Building libnut + cd libnut; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(knrflag)" + +src:: + @echo --- Building src + cd src; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic" + +src-purifyd:: + @echo --- Building Purify'd src + cd src; $(MAKE) PURIFY=$(PURIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-p" + +src-quantifyd:: + @echo --- Building Quantify'd src + cd src; $(MAKE) PURIFY=$(QUANTIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-q" + +src-static:: + @echo --- Building src-static + cd src; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags) -static" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic" + +src-static-motif:: + @echo --- Building src-static-motif + cd src; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_motif_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic" + +src-static-purifyd:: + @echo --- Building src-static-purifyd + cd src; $(MAKE) PURIFY=$(PURIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags) -static" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-p" + +src-static-motif-purifyd:: + @echo --- Building src-static-motif-purifyd + cd src; $(MAKE) PURIFY=$(PURIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_motif_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-p" + +src-static-quantifyd:: + @echo --- Building src-static-quantifyd + cd src; $(MAKE) PURIFY=$(QUANTIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags) -static" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-q" + +src-static-motif-quantifyd:: + @echo --- Building src-static-motif-quantifyd + cd src; $(MAKE) PURIFY=$(QUANTIFY) CC=$(CC) RANLIB=$(RANLIB) LDFLAGS="$(ldflags)" CFLAGS="$(CFLAGS) $(customflags) $(xinc) $(jpegflags) $(dtmflags) $(hdfflags) $(pngflags) $(krbflags) -I.. -I../libXmx -I../libwww2" AUX_CFLAGS=$(knrflag) X_LIBS="$(static_motif_xlibs)" SYS_LIBS="$(sockslibs) $(syslibs)" DTM_LIBS="$(dtmlibs)" HDF_LIBS="$(hdflibs)" WAIS_LIBS="$(waislibs)" LIBWWW_DIR=../libwww2 JPEG_LIBS="$(jpeglibs)" PNG_LIBS="$(pnglibs)" KRB_LIBS="$(krblibs)" LIBNUT_DIR=../libnut MOSAIC="Mosaic-q" + +libnet:: + @echo --- Building libnet + cd libnet; $(MAKE) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(dtmflags)" + +libdtm:: + @echo --- Building libdtm + cd libdtm; $(MAKE) $(dtmmachtype) CC=$(CC) RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) $(dtmflags)" + +clean: + cd libXmx; $(MAKE) $@ + cd libhtmlw; $(MAKE) $@ + cd libwww2; $(MAKE) $@ + cd src; $(MAKE) MOSAIC="Mosaic" $@ + cd libnet; $(MAKE) $@ + cd libdtm; $(MAKE) $@ + cd libnut; $(MAKE) $@ + +wclean: + cd libhtmlw; $(MAKE) $@ + cd src; $(MAKE) MOSAIC="Mosaic" $@ + +commit: + cvs commit +update: + cvs update +countlines: + wc libdtm/*.[ch] libnet/*.[ch] libXmx/*.[ch] libhtmlw/*.[ch] libwww2/*.[ch] src/*.[ch] +replicate: + cp Makefile Makefile.sun + cp Makefile Makefile.ibm + cp Makefile Makefile.dec + cp Makefile Makefile.alpha + cp Makefile Makefile.hp +prune: + mv Makefile.sun Makefile.sun.old + mv Makefile.ibm Makefile.ibm.old + mv Makefile.dec Makefile.dec.old + mv Makefile.alpha Makefile.alpha.old + mv Makefile.hp Makefile.hp.old From 7cc17121a6ed1ed52237a3e456ee9d229f26319b Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 30 Jan 2023 10:37:59 +0900 Subject: [PATCH 2/4] fixed --- Makefile | 24 ++++++++++++++++++++++++ makefiles/Makefile.netbsd | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 43a994b..62f7208 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,30 @@ p_freebsd_static_motif: rm_and_touch q_freebsd_static_motif: rm_and_touch $(MAKE) -f makefiles/Makefile.freebsd q_static_motifd DEV_ARCH=freebsd +dev_netbsd: rm_and_touch netbsd +netbsd: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd DEV_ARCH=netbsd +p_netbsd: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd purifyd DEV_ARCH=netbsd +q_netbsd: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd quantifyd DEV_ARCH=netbsd + +dev_netbsd_static: rm_and_touch netbsd_static +netbsd_static: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd staticd DEV_ARCH=netbsd +p_netbsd_static: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd p_staticd DEV_ARCH=netbsd +q_netbsd_static: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd q_staticd DEV_ARCH=netbsd + +dev_netbsd_static_motif: rm_and_touch netbsd_static_motif +netbsd_static_motif: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd static_motifd DEV_ARCH=netbsd +p_netbsd_static_motif: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd p_static_motifd DEV_ARCH=netbsd +q_netbsd_static_motif: rm_and_touch + $(MAKE) -f makefiles/Makefile.netbsd q_static_motifd DEV_ARCH=netbsd + dev_linux: rm_and_touch linux linux: rm_and_touch $(MAKE) -f makefiles/Makefile.linux DEV_ARCH=linux diff --git a/makefiles/Makefile.netbsd b/makefiles/Makefile.netbsd index fda7f37..ac3483b 100755 --- a/makefiles/Makefile.netbsd +++ b/makefiles/Makefile.netbsd @@ -143,7 +143,7 @@ static_xlibs = /usr/X11R6/lib/libXpm.a /usr/X11R6/lib/libXm.a /usr/X11R6/lib/lib # SAM pngincludedir = $(pngdir)/include # SAM pnglibs = $(pnglibdir)/libpng.a $(pnglibdir)/libz.a /usr/lib/libm.a # SAM pngflags = -I$(pngincludedir) -DHAVE_PNG -pnglibs = -lpng -lz -lm +pnglibs = -lpng16 -lz -lm pngflags = -DHAVE_PNG #### JPEG SUPPORT From 730131aeddd0a00b182c5c938cfaa28f6ef68362 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 30 Jan 2023 10:59:27 +0900 Subject: [PATCH 3/4] bugfix. now static/static-motif works. --- makefiles/Makefile.netbsd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makefiles/Makefile.netbsd b/makefiles/Makefile.netbsd index ac3483b..bb377d7 100755 --- a/makefiles/Makefile.netbsd +++ b/makefiles/Makefile.netbsd @@ -75,7 +75,7 @@ syslibs = -lc #### BSD/386 # xinc = -I/usr/X11/include -#xinc = -I/usr/X11R6/include +#xinc = -I/usr/X11R7/include xinc = -I/usr/X11R7/include #### X library locations. @@ -98,11 +98,11 @@ xinc = -I/usr/X11R7/include #### For Linux -- You must set "LD_LIBRARY_PATH" to include the path to #### your X libs, or some may not be found by the loader. Check the #### loader with "ldd Mosaic" after you build. -#xlibs = -L/usr/X11R6/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM -xlibs = -L/usr/local/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM +#xlibs = -L/usr/X11R7/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM +xlibs = -L/usr/X11R7/lib -L/usr/pkg/lib -lXext -lXpm -lXm -lXmu -lXt -lX11 -lICE -lSM -static_motif_xlibs = -L/usr/X11R6/lib -lXext -lXpm /usr/X11R6/lib/libXm.a -lXmu -lXt -lX11 -lICE -lSM -static_xlibs = /usr/X11R6/lib/libXpm.a /usr/X11R6/lib/libXm.a /usr/X11R6/lib/libXmu.a /usr/X11R6/lib/libXt.a /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libX11.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a +static_motif_xlibs = -L/usr/X11R7/lib -lXext -lXpm -lXft /usr/pkg/lib/libXm.a -lXmu -lXt -lX11 -lICE -lSM +static_xlibs = /usr/X11R7/lib/libXpm.a /usr/pkg/lib/libXm.a /usr/X11R7/lib/libXmu.a /usr/X11R7/lib/libXt.a /usr/X11R7/lib/libXext.a /usr/X11R7/lib/libX11.a /usr/X11R7/lib/libSM.a /usr/X11R7/lib/libICE.a /usr/X11R7/lib/libxcb.a /usr/X11R7/lib/libXfont.a /usr/X11R7/lib/libXau.a /usr/X11R7/lib/libXdmcp.a /usr/X11R7/lib/libXft.a /usr/X11R7/lib/libfontconfig.a /usr/X11R7/lib/libXrender.a /usr/X11R7/lib/libfreetype.a /usr/lib/libexpat.a /usr/X11R7/lib/libX11.a #### For BSD/386: # xlibs = -L/usr/X11/lib -lXm -lXmu -lXt -lX11 #### For Motorola SVR4: From 2a15f5dd946c3f77b729c14f415481fe96d1853d Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 6 Feb 2024 20:33:06 +0900 Subject: [PATCH 4/4] fixing the linux error --- makefiles/Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux index 17614ed..a66384d 100755 --- a/makefiles/Makefile.linux +++ b/makefiles/Makefile.linux @@ -206,7 +206,7 @@ krblibs = $(krb4libs) $(krb5libs) #### . If you want to define the default Mosaic documentation directory #### (should be a URL), set -DDOCS_DIRECTORY_DEFAULT=\\\"url\\\" #### . Other things you can define are spelled out in src/mosaic.h. -customflags = +customflags = -fcommon