Files
retrobsd/src/cmd/fdisk/Makefile
2014-04-09 14:27:18 +01:00

42 lines
782 B
Makefile

#
# Public Domain. 1995/03/13 - Steven Schultz
#
TOPSRC = $(shell cd ../../..; pwd)
include $(TOPSRC)/target.mk
CFLAGS += -Werror -I../../../sys/include
BIN = fdisk
SRCS = $(BIN).c
OBJS = $(BIN).o
MAN = $(BIN).0
all: $(BIN) ${MAN}
$(BIN): ${OBJS}
${CC} ${LDFLAGS} -o $@.elf ${OBJS} ${LIBS}
${OBJDUMP} -S $@.elf > $@.dis
${SIZE} $@.elf
${ELF2AOUT} $@.elf $@
.SUFFIXES: .0 .1
.1.0:
${MANROFF} $*.1 > $@
clean:
rm -f *.o *.elf ${MAN} *.elf *.dis tags *~ $(BIN)
depend: ${SRCS}
mkdep ${CFLAGS} ${SRCS}
install: all
install -m 755 $(BIN) ${DESTDIR}/sbin
install -m 755 $(MAN) ${DESTDIR}/share/man/cat8
lint: ${SRCS}
lint -hax ${SRCS}
tags: ${SRCS}
ctags ${SRCS}