mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
bdfb1d83d2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7912 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
331 B
Makefile
22 lines
331 B
Makefile
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)
|