# # @(#)Makefile.sun 1.1 88/02/24 # # Copyright (c) 1988 by Sun Microsystems, Inc. # # Global macro definitions DEFAULTNEWSHOME=/usr/NeWS DESTDIR= INSDIR=${DESTDIR}${DEFAULTNEWSHOME} OSI=SUN OPT=-O3 ROPT=-R #DEVS=-DINCLCG4 -DCG4_ENABLE_HACK DEVS= TARGET_ARCH=-sparc #XSRC=Xparse.c #XOBJ=Xparse.o #XHDRS=X.h Xproto.h mitcopyrit.h XSRC= XOBJ= XHDRS= FB= BYTES= COPTS=${FB} ${BYTES} CFLAGS=${OPT} ${ROPT} ${COPTS} -I${INCLUDE} -D${OSI} ${GRAPHICS}/fract${TARGET_ARCH}.il -DDEFAULTNEWSHOME='"${DEFAULTNEWSHOME}"' # Install directory BINDIR=${INSDIR}/bin # Include directory INCLUDE=include # Common directories NUCLEUS=nucleus GRAPHICS=graphics LIB=../lib/NeWS # Version-specific directories OS=sunos DEV=sunw SUBDIRS=${NUCLEUS} ${GRAPHICS} ${LIB} dev/${DEV} os/${OS} # Libs COMMONLIBS=${NUCLEUS}/libnews.a ${GRAPHICS}/cscript.a ${LIB}/libpsio.a VERSIONLIBS=os/${OS}/libos.a dev/${DEV}/libdev.a NEWSLIBS=${COMMONLIBS} ${VERSIONLIBS} SYSLIBS=-lc -lsunwindow -lpixrect -lm all: news_server debug: cc ${OPT} ${TARGET_ARCH} -o news_server ${NEWSLIBS} \ ${GRAPHICS}/cscript.a -lpixrect ${SYSLIBS} news_server: ${INCLUDE} ${NEWSLIBS} cc ${OPT} ${TARGET_ARCH} -o news_server ${NEWSLIBS} \ ${GRAPHICS}/cscript.a -lpixrect ${SYSLIBS} ${INCLUDE}: ${INCLUDE}/Makefile cd ${INCLUDE}; make -k ${INCLUDE}/Makefile: (cd ${INCLUDE}; ${GET} -GMakefile SCCS/s.Makefile.sun) @echo ${INCLUDE}/Makefile retrieved... ${NUCLEUS}/libnews.a: ${NUCLEUS}/Makefile FRC cd ${NUCLEUS}; make -k OPT='${OPT}' ROPT='${ROPT}' \ COPTS='${COPTS}' OSI='${OSI}' \ TARGET_ARCH='${TARGET_ARCH}' \ XSRC='${XSRC}' XOBJ='${XOBJ}' XHDRS='${XHDRS}' \ DEFAULTNEWSHOME='${DEFAULTNEWSHOME}' all ${GRAPHICS}/cscript.a: ${GRAPHICS}/Makefile FRC cd ${GRAPHICS}; make -k OPT='${OPT}' ROPT='${ROPT}' \ COPTS='${COPTS}' OSI='${OSI}' \ TARGET_ARCH='${TARGET_ARCH}' all ${LIB}/libpsio.a: ${LIB}/Makefile FRC cd ${LIB}; make -k OPT="${OPT}" COPTS="${COPTS}" ROPT="${ROPT}" \ OSI='${OSI}' TARGET_ARCH='${TARGET_ARCH}' libpsio.a dev/${DEV}/libdev.a: dev/${DEV}/Makefile FRC cd dev/${DEV}; make -k OPT='${OPT}' ROPT='${ROPT}' \ COPTS='${COPTS}' OSI='${OSI}' DEVS='${DEVS}' \ TARGET_ARCH='${TARGET_ARCH}' all os/${OS}/libos.a: os/${OS}/Makefile FRC cd os/${OS}; make -k OPT='${OPT}' ROPT='${ROPT}' \ COPTS='${COPTS}' OSI='${OSI}' \ TARGET_ARCH='${TARGET_ARCH}' \ SYSV_NETWORK='${SYSV_NETWORK}' all ${NUCLEUS}/Makefile: (cd ${NUCLEUS}; ${GET} -GMakefile SCCS/s.Makefile.sun) @echo ${NUCLEUS}/Makefile retrieved... ${GRAPHICS}/Makefile: (cd ${GRAPHICS}; ${GET} -GMakefile SCCS/s.Makefile.sun) @echo ${GRAPHICS}/Makefile retrieved... ${LIB}/Makefile: (cd ${LIB}; ${GET} -GMakefile SCCS/s.Makefile.sun) @echo ${LIB}/Makefile retrieved... dev/${DEV}/Makefile: (cd dev/${DEV}; ${GET} -GMakefile SCCS/s.Makefile.${DEV}) @echo dev/${DEV}/Makefile retrieved... os/${OS}/Makefile: (cd os/${OS}; ${GET} -GMakefile SCCS/s.Makefile.${OS}) @echo os/${OS}/Makefile retrieved... install: news_server rm -f ${BINDIR}/news_server; cp news_server ${BINDIR} clean: rm -f news_server -for i in ${SUBDIRS}; do \ (cd $$i; make clean); \ done FRC: