diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +.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 $@ $< + |