summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
new file mode 100644
index 0000000..8d1bdaf
--- /dev/null
+++ b/lib/Makefile
@@ -0,0 +1,16 @@
+
+CFLAGS ?= -O2 -g -DENABLE_TRACING
+WFLAGS ?= -Wall -Wextra -Wmissing-prototypes
+
+SOURCES := $(wildcard *.c)
+OBJECTS := $(SOURCES:%.c=%.o)
+
+libltunify.a: $(OBJECTS)
+ #$(CC) $(WFLAGS) $(CFLAGS) -o $@ $^ -lrt -c
+ ar rcs $@ $^
+
+clean:
+ $(RM) libltunify.a $(OBJECTS)
+
+%.o: %.c
+ $(CC) -c $(WFLAGS) $(CFLAGS) -o $@ $<