sscall

UDP based voice chat
git clone git://git.2f30.org/sscall
Log | Files | Refs | README | LICENSE

commit c729d5428a69b86e31cf07f32439e301964f25ef
parent 5e09cb050517b2c1ca97238d00d9aeb785cc3103
Author: sin <sin@2f30.org>
Date:   Mon,  4 Jun 2012 12:57:44 +0100

sscall: Update Makefile


Diffstat:
MMakefile | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,17 +1,21 @@ bin = sscall ver = 0.1 -src = sscall.c +obj = sscall.o CC = gcc CFLAGS += -Wall -Wextra -I/usr/local/include LDFLAGS += -lao -lpthread -L/usr/local/lib -all: $(bin) +$(bin): $(obj) + $(CC) $(CFLAGS) -o $@ $(obj) $(LDFLAGS) -%: %.c - $(CC) -o $(bin) $(src) $(CFLAGS) $(LDFLAGS) +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< clean: - @rm -rf $(bin) + @rm -rf $(bin) $(obj) + +all: + make clean && make .PHONY: all clean