# # dmapt.makefile # # Copyright (c) 1990, Sun Microsystems, Inc. All Rights Reserved. # Sun considers its source code as an unpublished, proprietary # trade secret, and it is available only under strict license # provisions. This copyright notice is placed here only to protect # Sun in the event the source is deemed a published work. # Disassembly, decompilation, or other means of reducing the # object code to human readable form is prohibited by the license # agreement under which this code is provided to the user or # company in possession of this copy. # # RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the # Government is subject to restrictions as set forth in # subparagraph (c)(1)(ii) of the Rights in Technical Data and # Computer Software clause at DFARS 52.227-7013 and in similar # clauses in the FAR and NASA FAR Supplement. # # These examples are provided with no warranties of any kind, # including without limitation accuracy and usefulness, and Sun # expressly disclaims all implied warranties of merchantability, # fitness for a particular purpose and non-infringement. In no # event shall Sun be liable for any damages, including without # limitation, direct, special, indirect, or consequential damages # arising out of, or relating to, use of these examples by customer # or any third party. Sun is under no obligation to provide support # to customer. # # # %W%\t%G% # #DEBUG_FLAG= -DDMAPT_TRACK #DEBUG_FLAG= -DDMAPT_DEBUG DEBUG_FLAG= ARCH_FLAGS= -Dsun4c LINT_FLAGS= -abhnuxz default: install.auto lint: dmapt.lint install: install.dmapt load: load.dmapt unload: unload.dmapt makefile: -ln -s dmapt.makefile makefile install.auto: modstat (echo y ; echo 1) | make install install.dmapt: dmapt.o dmapt.INSTALL makefile chmod +x dmapt.INSTALL su -c "dmapt.INSTALL" modstat touch install.dmapt load.dmapt: install.dmapt su -c "chdir /dev; dmapt.LOAD" modstat unload.dmapt: dmapt.INSTALL makefile su -c "chdir /dev; dmapt.UNLOAD" modstat dmapt.o: dmapt.c dmaptio.h makefile cc -c -O2 $(ARCH_FLAGS) $(DEBUG_FLAG) dmapt.c dmapt.i: dmapt.c dmaptio.h makefile rm -f dmapt.i cc -E -C $(ARCH_FLAGS) $(DEBUG_FLAG) dmapt.c | cat -s > dmapt.i dmapt.lint: dmapt.c dmaptio.h makefile @rm -f dmapt.lint @lint $(LINT_FLAGS) $(ARCH_FLAGS) $(DEBUG_FLAG) dmapt.c \ > dmapt.lint @echo ----------------------------------------- >> dmapt.lint @lint $(LINT_FLAGS) $(ARCH_FLAGS) $(DEBUG_FLAG) \ -DKERNEL dmapt.c >> dmapt.lint