43 lines
789 B
Makefile
43 lines
789 B
Makefile
#
|
|
# Public Domain. 1997/3/27 - Steven Schultz
|
|
#
|
|
TOPSRC = $(shell cd ../../..; pwd)
|
|
include $(TOPSRC)/target.mk
|
|
|
|
CFLAGS = -O -Werror -g
|
|
|
|
SRCS = stty.c
|
|
OBJS = stty.o
|
|
MAN = stty.0
|
|
MANSRC = stty.1
|
|
|
|
all: stty ${MAN}
|
|
|
|
stty: ${OBJS}
|
|
${CC} ${LDFLAGS} -o stty.elf ${OBJS} ${LIBS}
|
|
${OBJDUMP} -S stty.elf > stty.dis
|
|
${SIZE} stty.elf
|
|
${ELF2AOUT} stty.elf $@ && rm stty.elf
|
|
|
|
${MAN}: ${MANSRC}
|
|
${MANROFF} ${MANSRC} > ${MAN}
|
|
|
|
clean:
|
|
rm -f *.o *.elf ${MAN} stty *.elf *.dis tags *~
|
|
|
|
depend: ${SRCS}
|
|
mkdep ${CFLAGS} ${SRCS}
|
|
|
|
install: all
|
|
cp ${MAN} ${DESTDIR}/share/man/cat1/
|
|
install stty ${DESTDIR}/bin/stty
|
|
|
|
lint: ${SRCS}
|
|
lint -hax ${SRCS}
|
|
|
|
tags: ${SRCS}
|
|
ctags ${SRCS}
|
|
|
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|