summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..f567c38 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@ $<
+