mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
16 lines
203 B
Makefile
16 lines
203 B
Makefile
CC=clang
|
|
OBJ=ipc.o main.o
|
|
|
|
all: migensim.vpi
|
|
|
|
%.o: %.c
|
|
$(CC) -fPIC -Wall -O2 -c -o $@ $<
|
|
|
|
migensim.vpi: $(OBJ)
|
|
$(CC) -shared -o $@ $(OBJ) -lvpi
|
|
|
|
clean:
|
|
rm -f $(OBJ)
|
|
rm -f migensim.vpi
|
|
|
|
.PHONY: clean
|