RetroShare/libretroshare/src/tcponudp/Makefile

61 lines
1.5 KiB
Makefile
Raw Normal View History

RS_TOP_DIR=..
include $(RS_TOP_DIR)/make.opt
EXECS = librs udp_server test_tou pair_tou reset_tou internal_tou largefile_tou
OBJ = tcpstream.o tcppacket.o udplayer.o tou_net.o tou.o
all : $(OBJ) $(EXECS)
.cc.o:
$(CC) $(CFLAGS) -c $<
udp_server: $(OBJ) udp_server.o
$(CC) $(CFLAGS) -o udp_server $(OBJ) udp_server.o $(LIBS)
clean:
-$(RM) $(OBJ) $(BIOOBJ) test_tou.o pair_tou.o udp_server.o reset_tou.o internal_tou.o largefile_tou.o
clobber: clean
-$(RM) udp_server test_tou pair_tou reset_tou internal_tou largefile_tou libtou.so ../lib/libtou.a
test_tou : $(OBJ) test_tou.o
$(CC) $(CFLAGS) -o test_tou $(OBJ) test_tou.o $(LIBS)
pair_tou : $(OBJ) pair_tou.o
$(CC) $(CFLAGS) -o pair_tou $(OBJ) pair_tou.o $(LIBS)
reset_tou : $(OBJ) reset_tou.o
$(CC) $(CFLAGS) -o reset_tou $(OBJ) reset_tou.o $(LIBS)
internal_tou : $(OBJ) internal_tou.o
$(CC) $(CFLAGS) -o internal_tou $(OBJ) internal_tou.o $(LIBS)
largefile_tou : $(OBJ) largefile_tou.o
$(CC) $(CFLAGS) -o largefile_tou $(OBJ) largefile_tou.o $(LIBS)
# For BIO Compilation.... SSL Interface.
#
BIOOBJ = bss_tou.o
BIOCC = gcc
BIOCFLAGS = -I $(SSL_DIR)/include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
libtou.a: $(BIOOBJ) $(OBJ)
ar rc ../lib/libtou.a $(BIOOBJ) $(OBJ)
libtou.so: $(BIOOBJ) $(OBJ)
$(CC) -o libtou.so -shared $(BIOOBJ) $(OBJ)
librs: $(BIOOBJ) $(OBJ)
ar r ../lib/libretroshare.a $(BIOOBJ) $(OBJ)
.c.o:
$(BIOCC) $(BIOCFLAGS) -c $<