mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
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)
|