# Common definitions
include ../../common.mak

CFLAGS += -I../include -I../boot -I../../include
objects = disk.o tunedasd.o
includes = $(wildcard ../include/*.h)

all: tunedasd

tunedasd: $(objects)
	$(CC) $(objects) -o tunedasd

%.o: %.c $(includes) Makefile
	$(CC) $(CFLAGS) -c -o $@ $<

install: all
	$(INSTALL) -d -m 755 $(BINDIR)
	$(INSTALL) -s -g $(GROUP) -o $(OWNER) -m 755 tunedasd $(BINDIR)

clean:
	rm -f *.o tunedasd

.PHONY: all install clean
