From 7547210e131d91361d02b9489d558aad150bd3d5 Mon Sep 17 00:00:00 2001 From: John Janus Date: Sat, 23 Sep 2017 16:39:06 +0200 Subject: [PATCH] add fifo to makefile --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 -- 2.49.0