#!/bin/make # @(#} $Revision: 1.14 $ # @(#} RCS control in //prime.corp/usr/local/src/cmd/prime/src/build.mk # # build.mk - special makefile used to build setname/map{0,1,1a,2} files # # Copyright (C) 1997 Landon Curt Noll, all rights reserved. # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted, provided that # the above copyright, this permission notice, and the disclaimer # below appear in all of the following: # # * supporting documentation # * source copies # * source works derived from this source # # THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # Landon Curt Noll /\oo/\ # # chongo@{toad,sgi}.com Share and Enjoy! # ############################################################################### # This makefile should be used by mksieve only. Use Makefile to make things! # ############################################################################### # standard shell # SHELL= /bin/sh # This is the top level directory, which may be overridden by re_comp # TOPDIR=/usr/local/lib/map # mksieve and re_comp will set this value to the given setname # SETNAME= /dev/null # standard symbols # CFLAGS= -n32 -O2 -I . #CFLAGS= -n32 -mips4 -r10000 -O2 -I . #CFLAGS= -n32 -mips4 -r10000 -O2 -I . -DDEBUG #CFLAGS= -O2 -I . -DDEBUG CC= cc # what to build # TARGETS= ${TOPDIR}/set/${SETNAME}/map0 ${TOPDIR}/set/${SETNAME}/map1 \ ${TOPDIR}/set/${SETNAME}/map1a ${TOPDIR}/set/${SETNAME}/map2 all: ${TARGETS} ${TOPDIR}/set/${SETNAME}/map0: ${TOPDIR}/set/${SETNAME}/map0.o \ ${TOPDIR}/src/jump.o (cd ${TOPDIR}/set/${SETNAME}; \ ${CC} ${CFLAGS} map0.o ../../src/jump.o -o map0) ${TOPDIR}/set/${SETNAME}/map0.o: ${TOPDIR}/src/map0.c \ ${TOPDIR}/set/${SETNAME}/nbits.h (cd ${TOPDIR}/set/${SETNAME}; ${CC} ${CFLAGS} ../../src/map0.c -c) ${TOPDIR}/set/${SETNAME}/map1: ${TOPDIR}/set/${SETNAME}/map1.o \ ${TOPDIR}/src/jump.o (cd ${TOPDIR}/set/${SETNAME}; \ ${CC} ${CFLAGS} map1.o ../../src/jump.o -o map1) ${TOPDIR}/set/${SETNAME}/map1.o: ${TOPDIR}/src/map1.c \ ${TOPDIR}/set/${SETNAME}/nbits.h (cd ${TOPDIR}/set/${SETNAME}; ${CC} ${CFLAGS} ../../src/map1.c -c) # These files are not yet built # ${TOPDIR}/set/${SETNAME}/map1a: ${TOPDIR}/set/${SETNAME}/map1a.o \ ${TOPDIR}/src/jump.o (cd ${TOPDIR}/set/${SETNAME}; \ ${CC} ${CFLAGS} map1a.o ../../src/jump.o -o map1a) ${TOPDIR}/set/${SETNAME}/map1a.o: ${TOPDIR}/src/map1a.c \ ${TOPDIR}/set/${SETNAME}/nbits.h (cd ${TOPDIR}/set/${SETNAME}; ${CC} ${CFLAGS} ../../src/map1a.c -c) ${TOPDIR}/set/${SETNAME}/map2: ${TOPDIR}/set/${SETNAME}/map2.o \ ${TOPDIR}/src/jump.o (cd ${TOPDIR}/set/${SETNAME}; \ ${CC} ${CFLAGS} map2.o ../../src/jump.o -o map2) ${TOPDIR}/set/${SETNAME}/map2.o: ${TOPDIR}/src/map2.c \ ${TOPDIR}/set/${SETNAME}/nbits.h (cd ${TOPDIR}/set/${SETNAME}; ${CC} ${CFLAGS} ../../src/map2.c -c) setup: rm -f ${TOPDIR}/set/${SETNAME}/map0.o ${TOPDIR}/set/${SETNAME}/map1.o rm -f ${TOPDIR}/set/${SETNAME}/map1a.o ${TOPDIR}/set/${SETNAME}/map2.o rm -f ${TOPDIR}/set/${SETNAME}/jump.o clean: setup clobber: rm -f ${TARGETS}