diff options
author | Jan Klemkow <web2p10@wemelug.de> | 2010-07-08 22:17:39 +0200 |
---|---|---|
committer | Jan Klemkow <web2p10@wemelug.de> | 2010-07-08 22:17:39 +0200 |
commit | 4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f (patch) | |
tree | 51431343b5f46dd4b9920f151eab540c63077a95 /Makefile | |
parent | 2eb6ed491d5dee2e9a3aded7db2cfbfe5b0b7970 (diff) | |
download | pa-sink-ctl-4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f.tar.gz pa-sink-ctl-4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f.tar.bz2 pa-sink-ctl-4ed3f983f9609ee6b1b3ce20053b31e62ddb2a1f.zip |
splitting project into seperat files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |