From c1cb78d574c0429aa5e3ff3a2b3886e4bc153212 Mon Sep 17 00:00:00 2001 From: bbergeron Date: Wed, 3 Apr 2024 17:32:01 -0400 Subject: Reset Git repo and use a pseudonym to sign commits I used to sign my commits with my real name and my personal email address, which I wanted scrubbed off the "B." pseudosphere. Re-creating a new git repository was safer than simpler than re-writing the history (although the latter could've also worked but, oh well). --- Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b48bf99 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +.POSIX: + +CFLAGS = -std=c99 -O0 -D_POSIX_C_SOURCE=200809 -g +LDFLAGS = -lswresample -lavutil -lavcodec -lavformat -lpthread + +AUDIO = \ + audio/decoder.c\ + audio/encoder.c\ + audio/muxer.c\ + audio/resampler.c\ + audio/stream.c\ + +SRC = $(AUDIO) main.c streamer.c playlist.c transmuxer.c daemon.c common.c audio_muxer.c +OBJ = $(SRC:.c=.o) + +all: cybd + +.c.o: + $(CC) $(CFLAGS) -c $< -o $@ + +audio/decoder.o: audio/decoder.h +audio/encoder.o: audio/encoder.h +audio/resampler.o: audio/resampler.h audio/encoder.h audio/decoder.h +audio/muxer.o: audio/resampler.h audio/encoder.h audio/decoder.h audio/muxer.h + +common.o: common.h +main.o: common.h daemon.h +daemon.o: common.h daemon.h streamer.h +streamer.o: common.h streamer.h playlist.h transmuxer.h +transmuxer.o: common.h transmuxer.h playlist.h audio/muxer.h +playlist.o: common.h playlist.h + +cybd: $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + +clean: + rm -f cybd $(OBJ) testmuxer.o test/* + +testhls: testmuxer.o transmuxer.o playlist.o $(AUDIO:.c=.o) + $(CC) -o $@ $^ $(LDFLAGS) + +.PHONY: all clean -- cgit v1.2.3