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 cp tvdb /mod/webif/lib/bin/tvdb 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}