# Copyright (c) 1999 The Santa Cruz Operation, Inc.. All Rights Reserved. # # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE # SANTA CRUZ OPERATION INC. # # The copyright notice above does not evidence any actual or intended # publication of such source code. #ident "@(#)unixsrc:usr/src/i386at/ihvkit/ddi8_sample/ddi8.mk /main/hdk_nj/3" #ident "$Header: $" include $(UTSRULES) # Set MODNAME to the name of your driver which should be same as the # name of this directory MODNAME = ddi8 SAMPLE = ddi8_sample DRIVER = $(SAMPLE).cf/Driver.o MAKEFILE = $(MODNAME).mk KBASE = ../../.. LINTDIR = $(KBASE)/lintdir LFILE = $(LINTDIR)/$(MODNAME).ln # Use LOCALDEF to define any macros on which your driver depend. # Use LOCALINC to define any include directories your driver needs LOCALDEF = LOCALINC = -I. # You must set the following make variables. You may set them to nothing # if one or more is not applicable to your driver #CFILES - all the C files #SFILES - all the assembly language files #HFILES - all the header files #FILES - all the object files (one for each C file) #sysHeaders - only those header files which should be installed # in the /usr/include/sys directory. This list (minimum) # must include those files which are included in driver's # Space.c file. #LFILES - all the lint files (one for each C file) #SRCFILES - all the source files CFILES = ddi8_sample.c SFILES = HFILES = FILES = ddi8_sample.o sysHeaders = LFILES = ddi8_sample.ln SRCFILES = $(CFILES) $(SFILES) # This make file must provide these targets - # all install clean clobber all: $(DRIVER) install: all $(DRIVER): $(FILES) $(LD) -r -o $@ $(FILES) clean: -rm -f $(FILES) $(DRIVER) clobber: clean $(IDINSTALL) -R$(CONF) -d -e $(MODNAME) headinstall: $(sysHeaders) -[ -d $(INC)/sys ] || mkdir -p $(INC)/sys for f in $(sysHeaders); \ do \ $(INS) -f $(INC)/sys -m $(INCMODE) -u $(OWN) -g $(GRP) $$f; \ done FRC: fnames: for i in $(SRCFILES); do \ echo $$i; \ done $(LINTDIR): -mkdir -p @ lintit: $(LFILE) $(LFILE): $(LINTDIR) $(LFILES) -rm -f $(LFILE) `expr $(LFILE) : '\(.*\).ln'`.L for i in $(LFILES); do \ cat $$i >> $(LFILE); \ cat `basename $$i .ln`.L >> `expr $(LFILE) : '\(.*\).ln'`.L; \ done include $(UTSDEPEND) include $(MAKEFILE).dep