.POSIX:

CFLAGS = -O 1
LDFLAGS =
OUTNAME = libfemtokit.a
TESTFILE = hello.c

all: clean build
	ar -rs $(OUTNAME) *.o

build:

clean:
	-rm test *.o *.a

install: all
	mv -f $(OUTNAME) /usr/lib

test: all
	c99 -l libfemtokit.a -o test test/$(TESTFILE)

.c.o:
	c99 -c $(CFLAGS) -o $@ $<