mediaextract/Makefile

28 lines
632 B
Makefile
Raw Normal View History

2012-12-27 16:02:19 +00:00
BUILDDIR=build
2012-12-27 17:17:49 +00:00
OBJ=$(BUILDDIR)/audioextract.o $(BUILDDIR)/wave.o $(BUILDDIR)/ogg.o $(BUILDDIR)/mpeg.o
2012-12-27 16:02:19 +00:00
CC=gcc
CFLAGS=-Wall -std=c99 -O2 -fmessage-length=0 -g
BIN=$(BUILDDIR)/audioextract
2012-12-27 01:05:02 +00:00
.PHONY: all clean
2012-12-27 16:02:19 +00:00
all: $(BIN)
$(BIN): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $@
2012-12-27 17:17:49 +00:00
$(BUILDDIR)/audioextract.o: audioextract.c audioextract.h ogg.h wave.h mpeg.h
2012-12-27 16:02:19 +00:00
$(CC) $(CFLAGS) $< -o $@ -c
2012-12-27 17:17:49 +00:00
$(BUILDDIR)/wave.o: wave.c audioextract.h wave.h
2012-12-27 16:02:19 +00:00
$(CC) $(CFLAGS) $< -o $@ -c
2012-12-27 17:17:49 +00:00
$(BUILDDIR)/ogg.o: ogg.c audioextract.h ogg.h
2012-12-27 16:02:19 +00:00
$(CC) $(CFLAGS) $< -o $@ -c
2012-12-27 01:05:02 +00:00
2012-12-27 17:17:49 +00:00
$(BUILDDIR)/mpeg.o: mpeg.c audioextract.h mpeg.h
$(CC) $(CFLAGS) $< -o $@ -c
2012-12-27 01:05:02 +00:00
clean:
2012-12-27 16:02:19 +00:00
rm $(BIN) $(OBJ)