tvdb/Makefile
2015-03-08 00:16:18 +00:00

46 lines
569 B
Makefile

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/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}