File: Makefile

package info (click to toggle)
randomsound 0.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 88 kB
  • ctags: 67
  • sloc: ansic: 533; makefile: 62; sh: 43
file content (27 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
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
all: randomsound

SRCS := randomsound.c bitbuffer.c debias.c asoundrunner.c
HDRS := bitbuffer.h debias.h asoundrunner.h

LINK := gcc
CC := gcc

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

check: test_bitbuffer

randomsound: $(OBJS)
	$(LINK) -o $@ $^

clean:
	$(RM) randomsound $(OBJS)
	$(RM) *~ test_bitbuffer

test_%: %.c
	$(CC) -DTEST -o $@ $<
	./$@

randomsound.o: bitbuffer.h debias.h asoundrunner.h
bitbuffer.o: bitbuffer.h
debias.o: debias.h bitbuffer.h
asoundrunner.o: asoundrunner.h bitbuffer.h