libtask/Makefile
David du Colombier eed781b1a9 fix extra warnings
channel.c:116:12: warning: comparison between signed and unsigned integer expressions
fd.c:19:14: warning: unused parameter ‘v’
task.c:316:14: warning: unused parameter ‘s’
task.c:346:21: warning: unused parameter ‘v’
2012-08-01 02:00:00 +02:00

55 lines
873 B
Makefile

LIB=libtask.a
TCPLIBS=
ASM=asm.o
OFILES=\
$(ASM)\
channel.o\
context.o\
fd.o\
net.o\
print.o\
qlock.o\
rendez.o\
task.o\
all: $(LIB) primes tcpproxy testdelay
$(OFILES): taskimpl.h task.h 386-ucontext.h power-ucontext.h
AS=gcc -c
CC=gcc
CFLAGS=-Wall -Wextra -c -I. -ggdb
%.o: %.S
$(AS) $*.S
%.o: %.c
$(CC) $(CFLAGS) $*.c
$(LIB): $(OFILES)
ar rvc $(LIB) $(OFILES)
primes: primes.o $(LIB)
$(CC) -o primes primes.o $(LIB)
tcpproxy: tcpproxy.o $(LIB)
$(CC) -o tcpproxy tcpproxy.o $(LIB) $(TCPLIBS)
httpload: httpload.o $(LIB)
$(CC) -o httpload httpload.o $(LIB)
testdelay: testdelay.o $(LIB)
$(CC) -o testdelay testdelay.o $(LIB)
testdelay1: testdelay1.o $(LIB)
$(CC) -o testdelay1 testdelay1.o $(LIB)
clean:
rm -f *.o primes tcpproxy testdelay testdelay1 httpload $(LIB)
install: $(LIB)
cp $(LIB) /usr/local/lib
cp task.h /usr/local/include