summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-04-27 21:14:05 +0200
committerEdoardo La Greca2025-04-27 21:14:05 +0200
commit4983bbee296d3fdbef9339e8c8f19dd3e7af5262 (patch)
tree0b4107121b0061621dc3f5038df000b6202908e3
parent4c28da74daf1c7c922c2c8287672afdca4ccae04 (diff)
fill make file
-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 $@ $<
+