aboutsummaryrefslogtreecommitdiff
path: root/tools/llee/Makefile
blob: aabbed635b1f918f445b48a05b1ccdeb7f9cbe70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)