summaryrefslogtreecommitdiff
path: root/devel/cdk/patches/patch-aa
blob: aec57d3d27041cc754392e1ef77b437817446bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$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.