1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
CC?=gcc
DEB_CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
DEB_LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
CFLAGS=$(RPM_OPTS) -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe $(DEB_CFLAGS)
LDFLAGS=-Wl,-warn-common -s $(DEB_LDFLAGS)
all: rungetty
size rungetty
install: all
mkdir -p $(ROOT)/sbin
mkdir -p $(ROOT)/usr/man/man8
install -s -m 0755 -o root -g root rungetty $(ROOT)/sbin/
install -m 0644 -o root -g root rungetty.8 $(ROOT)/usr/man/man8/
rungetty: rungetty.o
clean:
rm -f *.o rungetty
|