1SOURCEDIR = . 2CC_SOURCES = $(wildcard $(SOURCEDIR)/*.c) 3CC_OBJECTS = $(sort $(patsubst $(SOURCEDIR)/%.c, $(SOURCEDIR)/%.o , $(CC_SOURCES))) 4 5.SUFFIXES: .c .cc .o 6 7all: libfriso.a 8 9libfriso.a: $(CC_OBJECTS) 10 ar rc $@ $^ 11 12clean: 13 rm -rf *.xo *.so *.o *.a 14