--- Makefile.orig	1995-08-09 09:15:17.000000000 +0800
+++ Makefile	2014-06-20 14:21:25.222558341 +0800
@@ -3,7 +3,7 @@
 # Should make just about anywhere...  If you have problems,
 # check out porting.c first
 
-CC            = gcc
+CC            ?= gcc
 
 # at present, no include directories needed
 # Except on our OSF3.0, where -I/usr/include is needed (why? I dont know).
@@ -19,7 +19,7 @@ DEBUGFLAG	      = -O
 #         Do not use it if it takes none (SunOS, HPUX, OSF1 )
 #         It works either way, just gets rid of a warning.
 
-CFLAGS	              =  -I/usr/include $(DEBUGFLAG) $(INCLUDEDIR)
+CFLAGS	              +=  -I/usr/include $(DEBUGFLAG) $(INCLUDEDIR)
 
 # for SunOS cc, just use the above
 # for cc on HPUX:
@@ -40,6 +40,11 @@ SRCS	      = util.c main.c decoders.c vi
 all:		$(PROGRAM)
 		strip $(PROGRAM)
 
+install:
+		install -cs ${PROGRAM} $(DESTDIR)${PREFIX}/bin
+		install -c block2spec $(DESTDIR)${PREFIX}/bin
+		install -c -m 644 mpeg_stat.1 $(DESTDIR)${PREFIX}/man/man1
+
 $(PROGRAM):	$(OBJS)
 		$(LD) -g $(OBJS) $(LIBS) -lm -o $(PROGRAM)
 
