blob: f3b088bf192166148d9135cb9317805420fc0693 [file] [log] [blame] [raw]
# $FreeBSD: releng/11.1/usr.sbin/mfiutil/Makefile 275054 2014-11-25 16:57:27Z bapt $
PROG= mfiutil
SRCS= mfiutil.c mfi_bbu.c mfi_cmd.c mfi_config.c mfi_drive.c mfi_evt.c \
mfi_flash.c mfi_patrol.c mfi_show.c mfi_volume.c mfi_foreign.c \
mfi_properties.c
#CFLAGS += -fno-builtin-strftime
LIBADD= util
CC := gcc
CFLAGS += -D "__FBSDID(S)=" -I include
CFLAGS += -Wall -Os
#CFLAGS += -D DEBUG=1
#.include <bsd.prog.mk>
#LIBS += -l util
CFLAGS += -isystem /usr/include/bsd -D LIBBSD_OVERLAY=1
LIBS += -l bsd
OBJECTS = $(addsuffix .o,$(basename $(SRCS)))
MANPAGE = mfiutil.8
default: $(PROG)
$(PROG): $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
clean:
rm -f $(OBJECTS) $(PROG)