| 1 |
#!/usr/bin/make |
| 2 |
|
| 3 |
# makefile documenting how to build example code from the |
| 4 |
# libvorbisidec ("tremor") library distribution. |
| 5 |
|
| 6 |
# Author: Daniel Kahn Gillmor <[email protected]> |
| 7 |
|
| 8 |
TARGETS = ivorbisfile_example iseeking_example |
| 9 |
|
| 10 |
all: $(TARGETS) |
| 11 |
|
| 12 |
%: %.c |
| 13 |
gcc -g -o $@ $< -lvorbisidec |
| 14 |
|
| 15 |
clean: |
| 16 |
rm -f $(TARGETS) |
| 17 |
|
| 18 |
# it is OK to unzip gzipped source (dh_installexamples auto-compresses |
| 19 |
# larger files in the examples directory) |
| 20 |
%.c: %.c.gz |
| 21 |
gzip -d $< |
| 22 |
# but save any .c files that get unzipped! |
| 23 |
.PRECIOUS: %.c |
| 24 |
|
| 25 |
.PHONY: all clean |