14 lines
162 B
Makefile
14 lines
162 B
Makefile
|
|
||
|
CFLAGS=-c -fPIC
|
||
|
|
||
|
CC = gcc
|
||
|
|
||
|
SRCS = libfpga.c
|
||
|
OBJS = $(SRCS:%.c=%.o)
|
||
|
|
||
|
libfpga: ${OBJS}
|
||
|
${CC} -shared -Wl,-soname,$@.so.1 -o $@.so.1.0.1 $^
|
||
|
|
||
|
clean:
|
||
|
rm *.o *.so.*
|