$NetBSD: patch-aa,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ --- Makefile.orig Wed Jul 15 13:27:08 1998 +++ Makefile Tue Dec 1 14:39:56 1998 @@ -9,14 +9,14 @@ # AIX, Alpha, FreeBSD, HPUX, Linux, Linux-xcurses, # Solaris, Sun, and Irix (SGI) # -OS = Solaris +OS = NetBSD # # These reflect where CDK will be installed from and to # on your system. # -SRCDIR = $(HOME)/cdk-$(VERSION) -INST_ROOTDIR = $(HOME)/local +SRCDIR = $(WRKSRC) +INST_ROOTDIR = $(PREFIX) # # Set some informational variables. @@ -51,7 +51,7 @@ INST_LIBDIR = ${INST_ROOTDIR}/lib INST_INCDIR = ${INST_ROOTDIR}/include INST_MANDIR = ${INST_ROOTDIR}/man/man3 -INST_SRCDIR = ${INST_ROOTDIR}/src/cdk +INST_SRCDIR = ${INST_ROOTDIR}/share/examples/cdk # # Add what ever flags you need for the CFLAGS. The following lists all of @@ -80,7 +80,7 @@ # NOSTRERR Your library does not have Sun # the library function strerr. # -EXTRA_CFLAGS = -g -Wall +EXTRA_CFLAGS = -Wall -I. ############################################################### # Do Not Change Anything Below This Line @@ -143,9 +143,9 @@ # # Standard library directive. # -cdklib $(CDKLIB): $(CDKOBJS) - @ar r $(CDKLIB) $(CDKOBJS) - @$(RANLIB) +#cdklib $(CDKLIB): $(CDKOBJS) +# @ar r $(CDKLIB) $(CDKOBJS) +# @$(RANLIB) # # Shared library directive. @@ -214,7 +214,7 @@ mkdir -p $(INST_SRCDIR); \ fi; @echo "Installing source example files..."; - @$(RM) $(INST_SRCDIR)/Makefile; + @-$(RM) $(INST_SRCDIR)/Makefile; @cp $(EXAMDIR)/examples.make $(INST_SRCDIR)/Makefile; @(cd $(EXAMDIR); for i in $(EXAMSRC); do \ echo " $(INST_SRCDIR)/$$i" ; \ @@ -364,13 +364,13 @@ # # Clean up after ourselves... # -clean:: - @echo "Cleaning files up..." - $(RM) *.o $(CDKLIB) $(CDKSLIB) inst/*.o - $(RM) core tst inst/vinstall inst/*.list - (cd $(EXAMDIR); make clean) - (cd $(CLIDIR); make clean) - (cd $(DEMODIR); make clean) +#clean:: +# @echo "Cleaning files up..." +# $(RM) *.o $(CDKLIB) $(CDKSLIB) inst/*.o +# $(RM) core tst inst/vinstall inst/*.list +# (cd $(EXAMDIR); make clean) +# (cd $(CLIDIR); make clean) +# (cd $(DEMODIR); make clean) # # This makes the test program.