2015-03-08 00:16:18 +00:00
|
|
|
MAKE=gmake
|
|
|
|
|
|
|
|
DEFS=
|
|
|
|
|
|
|
|
SRCS= tvdb.c
|
|
|
|
|
|
|
|
HDRS=
|
|
|
|
|
|
|
|
OBJS= $(SRCS:.c=.o)
|
|
|
|
CC=gcc
|
|
|
|
#CC=mipsel-linux-gcc
|
|
|
|
CFLAGS=-g
|
|
|
|
INCS=
|
|
|
|
LIBS=-lsqlite3
|
|
|
|
WARN=-pedantic -Wall -W -Wnested-externs -Wpointer-arith -Wno-long-long
|
|
|
|
|
|
|
|
all: tags tvdb
|
|
|
|
|
|
|
|
tvdb: tvdb.o
|
|
|
|
${CC} -static-libgcc \
|
|
|
|
${WARN} \
|
|
|
|
${DEFS} \
|
|
|
|
${CFLAGS} -o $@ \
|
|
|
|
${OBJS} \
|
|
|
|
${LIBS}
|
|
|
|
@echo "Done..."
|
|
|
|
|
|
|
|
install: tvdb
|
|
|
|
strip tvdb
|
2015-03-09 20:48:47 +00:00
|
|
|
cp tvdb /mod/webif/lib/bin/tvdb
|
2015-03-08 00:16:18 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@-touch core
|
|
|
|
rm -f tvdb tvdb~ core tags ${OBJS}
|
|
|
|
|
|
|
|
tags:
|
|
|
|
@-ctags *.[ch] 2>> /dev/null
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo " $<"
|
|
|
|
@$(CC) $(CFLAGS) ${WARN} ${DEFS} ${INCS} -c $< -o $@
|
|
|
|
|
|
|
|
#${OBJS}: ${HDRS}
|
|
|
|
|
|
|
|
|