aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llee/Makefile
blob: b39129829ddc9842ca36f646708c01cd6dcc3cfa (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)
	
%.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)