-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
42 lines (27 loc) · 861 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VERSION = 0.1.0
INCLUDES =
LIBS =
CC = gcc
CFLAGS += -std=c99 -Wall -W -Wshadow -Wwrite-strings -Wno-unused -g -O3 $(INCLUDES)
LD = gcc
LDFLAGS += $(LIBS)
AR = ar
ARFLAGS = rsc
BINARIES =
all: libmpeg2ts.a $(BINARIES)
libmpeg2ts.a: mpeg2ts.c mpeg2ts.h
$(CC) $(CFLAGS) -c -o mpeg2ts.o mpeg2ts.c
$(AR) $(ARFLAGS) libmpeg2ts.a mpeg2ts.o
mpeg2ts.c: mpeg2ts.xml code_generator.pl mpeg2ts.c_prefix
perl code_generator.pl
mpeg2ts.h: mpeg2ts.xml code_generator.pl mpeg2ts.h_prefix mpeg2ts.h_suffix
perl code_generator.pl
clean:
rm -f *.o libmpeg2ts.a $(BINARIES)
dox: mpeg2ts.c mpeg2ts.h
doxygen Doxyfile
dist: clean
mkdir libmpeg2ts-$(VERSION)
tar c --files-from=MANIFEST -f tmp.tar ; cd libmpeg2ts-$(VERSION) ; tar xf ../tmp.tar ; rm -f ../tmp.tar
tar czf ../libmpeg2ts-$(VERSION).tar.gz libmpeg2ts-$(VERSION)
rm -rf libmpeg2ts-$(VERSION)