mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
0709078b8d
llvm-svn: 7912
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)
|