# options and such CC = gcc OPTS = -Wall -fpic INCS = LIBS = # files we need SRCS = LibFS.c OBJS = $(SRCS:.c=.o) TARGET = libFS.so all: $(TARGET) clean: rm -f $(TARGET) $(OBJS) %.o: %.c $(CC) $(INCS) $(OPTS) -c $< -o $@ $(TARGET): $(OBJS) $(CC) -shared -o $(TARGET) $(OBJS) $(LIBS)