libtask/Makefile.sun

59 lines
903 B
Makefile
Raw Normal View History

2011-01-03 23:08:59 +03:00
LIB=libtask.a
OFILES=\
channel.o\
context.o\
fd.o\
net.o\
print.o\
qlock.o\
rendez.o\
task.o\
2012-08-01 06:00:00 +04:00
ip.o\
2011-01-03 23:08:59 +03:00
all: $(LIB) primes tcpproxy testdelay
2012-08-01 06:00:00 +04:00
$(OFILES): taskimpl.h task.h 386-ucontext.h power-ucontext.h ip.h
2011-01-03 23:08:59 +03:00
AS=as
CC=cc
CFLAGS=-c -I. -g
%.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)
httpload: httpload.o $(LIB)
$(CC) -o httpload httpload.o $(LIB)
stdlogger: stdlogger.o $(LIB)
$(CC) -o stdlogger stdlogger.o $(LIB)
testdelay: testdelay.o $(LIB)
$(CC) -o testdelay testdelay.o $(LIB)
clock: clock.o $(LIB)
$(CC) -o clock clock.o $(LIB)
clean:
rm *.o tcpproxy primes $(LIB)
tgz:
tar czvf libtask.tgz COPYRIGHT README *.[chS] Makefile
install: $(LIB)
cp $(LIB) /usr/local/lib
cp task.h /usr/local/include