1 |
PREFIX = /usr/local |
---|
2 |
TARGETS = epgdump |
---|
3 |
OBJ_TARGETS = epgdump.o aribstr.o eit.o ts.o util.o sdt.o |
---|
4 |
HEDDERDEPEND = eit.h sdt.h aribstr.h ts.h util.h |
---|
5 |
|
---|
6 |
LANG=C |
---|
7 |
CC = gcc |
---|
8 |
CFLAGS = -std=c99 -O2 -Wall -g -Werror -Wno-return-type |
---|
9 |
|
---|
10 |
LIBS = |
---|
11 |
|
---|
12 |
.c.o: |
---|
13 |
${CC} ${CFLAGS} -c $< |
---|
14 |
|
---|
15 |
all: ${TARGETS} |
---|
16 |
|
---|
17 |
|
---|
18 |
${TARGETS}: ${OBJ_TARGETS} |
---|
19 |
${CC} ${CFLAGS} ${OBJ_TARGETS} -o $@ ${LDFLAGS} ${LIBS} |
---|
20 |
|
---|
21 |
${OBJ_TARGETS}: ${HEDDERDEPEND} |
---|
22 |
|
---|
23 |
clean: |
---|
24 |
rm -f core ${TARGETS} *.o |
---|
25 |
|
---|
26 |
install: |
---|
27 |
install -m 755 ${TARGETS} ${PREFIX}/bin |
---|