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/ |