From 4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Thu, 8 Jul 2010 22:17:39 +0200 Subject: splitting project into seperat files --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4651f4f..c6057b3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,20 @@ CC=gcc CFLAGS=-pedantic -std=c99 -Wall -Werror -lpulse -lncurses -lform -all: pa-sink-ctl.c - $(CC) $(CFLAGS) pa-sink-ctl.c -o pa-sink-ctl +all: pa-sink-ctl.o interface.o sink_input.o sink.o + $(CC) $(CFLAGS) -o pa-sink-ctl pa-sink-ctl.o interface.o sink_input.o sink.o + +pa-sink-ctl.o: pa-sink-ctl.c pa-sink-ctl.h + $(CC) $(CFLAGS) -c pa-sink-ctl.c -o pa-sink-ctl.o + +interface: interface.c interface.h + $(CC) $(CFLAGS) -c interface.c -o interface.o + +sink_input: sink_input.c sink_input.h + $(CC) $(CFLAGS) -c sink_input.c -o sink_input.o + +sink: sink.c sink.h + $(CC) $(CFLAGS) -c sink.c -o sink.o test: $(CC) $(CFLAGS) nc-test.c -o nc-test -- cgit