From: John Janus Date: Sat, 23 Sep 2017 14:39:06 +0000 (+0200) Subject: add fifo to makefile X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=7547210e131d91361d02b9489d558aad150bd3d5;p=FakeRadio.git add fifo to makefile --- diff --git a/Makefile b/Makefile index eab35e1..6a2264e 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,18 @@ CC = gcc -CFLAGS = -std=gnu11 -Wall -g +CFLAGS = -std=gnu11 -Wall -O2 LDFLAGS = -lpthread -lao -lmpg123 -lwiringPi -fakeradio : mp3player.o main.o - $(CC) $(CFLAGS) -o fakeradio main.o mp3player.o $(LDFLAGS) +fakeradio : mp3player.o main.o fifo.o + $(CC) $(CFLAGS) -o fakeradio main.o mp3player.o fifo.o $(LDFLAGS) main.o : simple_try.c $(CC) $(CFLAGS) -c -o main.o simple_try.c $(LDFLAGS) -mp3player.o : mp3player.h mp3player.c +mp3player.o : mp3player.h mp3player.c fifo.h $(CC) $(CFLAGS) -c -o mp3player.o mp3player.c $(LDFLAGS) +fifo.o : fifo.c fifo.h + $(CC) $(CFLAGS) -c -o fifo.o fifo.c $(LDFLAGS) + .PHONY : clean clean : - rm main.o mp3player.o fakeradio + rm main.o mp3player.o fifo.o fakeradio