
#
#  scsi_admin: main.c
#
#  Copyright 2001 by Andreas H. Mueller <andreas.muller@web.de>
#
#  This program is free software; you may redistribute and/or modify it under
#  the terms of the GNU General Public License Version 2 as published by the
#  Free Software Foundation.
#
#  This program is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
#  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
#  for complete details.
#


CC       = gcc
CFLAGS   = -Wall -pedantic -O3
OBJS     = cmd.o main.o proc.o scsi.o
INSTALL  = install
BINDIR   = /sbin
BINNAME  = scsi_admin
SRCNAME  = scsi_admin.c
BINOWNER = root
BINGROUP = disk

all: $(BINNAME)

$(BINNAME): $(OBJS)
	$(CC) $(CFLAGS) -o $(BINNAME) $(OBJS)

install: $(BINNAME)
	$(INSTALL) -m 0755 -o $(BINOWNER) -g $(BINGROUP) $(BINNAME) $(BINDIR)

clean:
	rm -f $(BINNAME) *.o

