--- Makefile
+++ Makefile
@@ -35,5 +35,5 @@
 # Everything gets put in subdirectories of. . .
 
-TOPDIR=		/usr/local
+TOPDIR=		$(DESTDIR)/usr/local
 
 # "Compiled" time zone information is placed in the "TZDIR" directory
@@ -84,5 +84,5 @@
 # Non-default libraries needed to link.
 # Add -lintl if you want to use `gettext' on Solaris.
-LDLIBS=
+LDLIBS=$(LDFLAGS)
 
 # Add the following to the end of the "CFLAGS=" line as needed.
@@ -211,5 +211,5 @@
 # falls on a Friday, Saturday, or Sunday.
 
-CFLAGS=
+CFLAGS?=
 
 # If you want zic's -s option used when installing, uncomment the next line
