aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llee/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llee/Makefile')
-rw-r--r--tools/llee/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/llee/Makefile b/tools/llee/Makefile
new file mode 100644
index 0000000..aabbed6
--- /dev/null
+++ b/tools/llee/Makefile
@@ -0,0 +1,21 @@
+LEVEL = ../..
+include $(LEVEL)/Makefile.config
+
+SRCS = ExecveHandler.c SysUtils.c
+
+OBJS = $(SRCS:%.c=%.o)
+SO = execve.so
+
+all: $(SO) execve_test
+
+%.o: %.c
+ gcc -g -I../../include -D_GNU_SOURCE $< -c -o $@
+
+$(SO): $(OBJS)
+ gcc -g -shared -ldl -rdynamic $(OBJS) -o $@
+
+execve_test: execve_test.c
+ gcc -g $< -o $@
+
+clean:
+ rm -f $(OBJS) $(SO)