blob: 32dee314b58c0973f2c06a15996685681b9f5b60 [file] [log] [blame] [raw]
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 human_readable.c
CC := gcc
#CC := gcc-4.3.2-gld
CFLAGS += -I include
CFLAGS += -std=gnu99 -Wall -Os
#CFLAGS += -D DEBUG=1
#CFLAGS += -D HAEV_LIBDEVINFO=1
#LIBS += -l devinfo
OBJECTS = $(addsuffix .o,$(basename $(SRCS))) ${SRCS:R:S/$/.o/g}
MANPAGE = mfiutil.8
default: $(PROG)
$(PROG): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)
clean:
rm -f $(OBJECTS) $(PROG)