Initial commit
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
TARGET=fb.so
|
||||
PREFIX=/usr/local
|
||||
SRCS=fb.c
|
||||
HEADERS=fb.h
|
||||
FLAGS=-shared
|
||||
|
||||
${TARGET}: ${SRCS}
|
||||
gcc ${FLAGS} ${SRCS} -o ${TARGET}
|
||||
|
||||
install: ${TARGET}
|
||||
mkdir -p ${PREFIX}/lib ${PREFIX}/include
|
||||
cp ${TARGET} ${PREFIX}/lib/lib${TARGET}
|
||||
cp ${HEADERS} ${PREFIX}/include/
|
||||
|
||||
clean:
|
||||
rm ${TARGET}
|
||||
Reference in New Issue
Block a user