mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
0abaaf49fd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7760 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
343 B
Makefile
22 lines
343 B
Makefile
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)
|