#
DEFINES=-DRESET_TTY=1
CFLAGS=-Wall $(RPM_OPT_FLAGS) -pipe -D_GNU_SOURCE -D_BSD_SOURCE $(DEFINES)
# my compiler doesn't need -fno-strength-reduce
LDFLAGS=-Wl,-warn-common -s
CC=gcc

all:		mingetty
		size mingetty

install:	all
		install -s mingetty /sbin/
		install -m 644 mingetty.8 /usr/share/man/man8/

mingetty:	mingetty.o sigfholder.o
mingetty.o:	mingetty.c

clean:
		rm -f *.o mingetty

