File: Makefile

package info (click to toggle)
unmo3 0.6-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 320 kB
  • sloc: ansic: 1,013; makefile: 35; sh: 31
file content (51 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51


CC=gcc
LINK=${CC} ${LIB_DIR}
CFLAGS=-g -Wall ${INCLUDE_DIR} ${DEFINES}
LIBS=
INCLUDE_DIR=-I.
LIB_DIR=-L.

SRCS=unmo3.c mo3_unpack.c mo3_parse.c mo3_mp3.c

OBJS=$(SRCS:%.c=%.o)

MAKEDEPEND=makedepend

TARGETS=unmo3 

FILES=${SRCS} Makefile mo3_unpack.h mo3_parse.h endian_macros.h README.txt mo3_mp3.h 16to8.c demo.sh dannyelf_ll.mo3

COMPILE=$(CC) -c ${CFLAGS}

all: $(TARGETS)

unmo3: ${OBJS}
	${LINK} -o unmo3 $^

test: unmo3
	./test.sh

demo: unmo3
	./demo.sh

clean:
	rm -f *.o $(TARGETS)

tar:
	tar cvf unmo3.tar ${FILES}

ziparc:
	./zip -9r unmo3-`date +%Y%m%d_%H%M%S`.zip ${FILES}

ziptest:
	./zip -9r unmo3_test.zip test.sh Testdata
	
.c.o:
	$(COMPILE) $<

dep:
	$(MAKEDEPEND) -f.depend -- ${CFLAGS} -- ${SRCS}

#include .depend