blob: da3b8ffe0a3f7b55bcdef85cb13859e077a3ffb4 [file] [log] [blame]
TARGET := libnandapi.so
INCLUDE :=
CFLAGS += -fPIC -O2 $(INCLUDE) -D_LARGEFILE64_SOURCE
SHARE := -shared
SOURCE := $(wildcard src/*.c)
OBJS := $(patsubst %.c,%.o,$(SOURCE))
.PHONY : all clean install $(TARGET)
all : $(TARGET)
$(TARGET) : $(OBJS)
$(CC) $(CFLAGS) $(SHARE) -o $@ $(OBJS)
clean :
rm -fr src/*.o *.so
install : $(TARGET)
install -d $(DESTDIR)$(PREFIX)/lib/