####### OS Dependant Definitions ###### # they are defined in the following file... # edit Rules.make as appropriate include ../Makefile.common ifeq (${MPATROL},yes) # add mpatrol support for extended memory debugging mpatrol_LIB = -lmpatrol -lbfd -liberty endif # libraries required ifeq (${OS},linux) # Linux version # add MPATROL support if required # BINDIR = ../bin/linux LDPC_BINDIR = ../../ldpc/bin/linux LIBRARIES = ${mpatrol_LIB} -lc -lm -lpthread -lglib -lgdome -lxml2 # added -I/usr/local/include for libgdome header files ADD_INCLUDES = -I/usr/local/include/ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include/ -I/usr/local/include/libgdome/ endif ifeq (${OS},solaris) # Solaris version: # Warning: SUN recommends to have -lucb at the end of list, # in order to priviledge SUN's libs to the BSD compatibility # lib (libucb). # CC requires: -mt -lpthread for multithreaded applications # NB: mpatrol not installed ! # BINDIR = ../bin/solaris LDPC_BINDIR = ../../ldpc/bin/solaris LIBRARIES = -lc -lm -lsocket -lnsl -lposix4 -mt -lpthread -L/usr/ucblib -lucb endif ifeq (${OS},freebsd) # FreeBSD version: # CC requires: -mt -lpthread for multithreaded applications # NB: mpatrol not installed ! # BINDIR = ../bin/freebsd LDPC_BINDIR = ../../ldpc/bin/freebsd LIBRARIES = -lm -pthread -lglib-2.0 -lgdome -lxml2 -L${LOCALBASE}/lib # added -I/usr/local/include for libgdome header files ADD_INCLUDES = -I${LOCALBASE}/include/ -I${LOCALBASE}/include/glib-2.0/ -I${LOCALBASE}/include/libgdome/ endif ###### Other variables ###### # Local CFLAGS. # gcc version #CFLAGS = -g -pg -O ${OSFLAGS} -D${RM_PROTOCOL} ${ADD_INCLUDES} #CFLAGS = -g -O -DDEBUG ${OSFLAGS} -D${RM_PROTOCOL} ${ADD_INCLUDES} CFLAGS = -O ${OSFLAGS} -D${RM_PROTOCOL} ${ADD_INCLUDES} # add purify linker for memory debug (Solaris only). # Purify 4.0 Solaris 2, Copyright (C) 1992-1996 Pure Software Inc. # #CCLINK_PURE = purify $(CC) CCLINK_PURE = purify -cache-dir=/tmp $(CC) # add quantify linker for profiling (Solaris only). CCLINK_QUANTIFY = quantify $(CC) # list of source and object files SRCFILES = fdt.c filemanage.c flute.c fsend.c frecv.c display.c OFILES = ${SRCFILES:.c=.o} ###### choose between the ALC / NORM versions ###### # Compile either with ALC or NORM support. # The RM_PROTOCOL and MCL_LIBRARY variables are target-specific. # In case of ALC, you may have to add libldpc.a depending on what # FEC codec is used by MCL alc: RM_PROTOCOL = ALC # Edit the following two lines as appropriate, according to the FEC # codec in use: if LDPC is used, then add the libbdpc.a library. # If only RSE is used and if you don't have the LDPC archive, then # remove the libbdpc.a library. alc: MCL_LIBRARY = ${BINDIR}/libmclalc.a #alc: MCL_LIBRARY = ${BINDIR}/libmclalc.a ${LDPC_BINDIR}/libldpc.a alc: TARGET_FLUTE = ${BINDIR}/flute #alc: all alc_pure: RM_PROTOCOL = ALC # Edit the following two lines as appropriate, according to the FEC # codec in use: if LDPC is used, then add the libbdpc.a library. alc_pure: MCL_LIBRARY = ${BINDIR}/libmclalc.a #alc_pure: MCL_LIBRARY = ${BINDIR}/libmclalc.a ${LDPC_BINDIR}/libldpc.a alc_pure: TARGET_FLUTE = ${BINDIR}/flute alc_pure: pure alc_quantify: RM_PROTOCOL = ALC # Edit the following two lines as appropriate, according to the FEC # codec in use: if LDPC is used, then add the libbdpc.a library. alc_quantify: MCL_LIBRARY = ${BINDIR}/libmclalc.a #alc_quantify: MCL_LIBRARY = ${BINDIR}/libmclalc.a ${LDPC_BINDIR}/libldpc.a alc_quantify: TARGET_FLUTE = ${BINDIR}/flute alc_quantify: quantify ###### Dependancies ###### all: alc #${TARGET_FLUTE}: ${OFILES} ${MCL_LIBRARY} alc: ${OFILES} ${MCL_LIBRARY} @echo "** Compiling flute-ALC using the MCL library..." ${CC} ${CFLAGS} ${OFILES} ${LIBRARIES} ${MCL_LIBRARY} -o ${TARGET_FLUTE} pure: ${OFILES} ${MCL_LIBRARY} @echo "** Compiling flute using the MCL library..." ${CCLINK_PURE} ${CFLAGS} ${OFILES} ${LIBRARIES} ${MCL_LIBRARY} -o ${TARGET_FLUTE} quantify: ${OFILES} ${MCL_LIBRARY} @echo "** Compiling flute using the MCL library..." ${CCLINK_QUANTIFY} ${CFLAGS} ${OFILES} ${LIBRARIES} ${MCL_LIBRARY} -o ${TARGET_FLUTE} clean : @for f in core ${OFILES} *_pure* *.pure_* .pur* *purify* ; do \ if [ -f "$${f}" ] ; then \ rm "$${f}"; \ fi \ done cleanall_alc : clean @for f in ${BINDIR}/flute; do \ if [ -f "$${f}" ] ; then \ rm $${f} ; \ fi \ done cleanall_norm : clean @for f in ${BINDIR}/fluten; do \ if [ -f "$${f}" ] ; then \ rm $${f} ; \ fi \ done cleanall : clean @for f in ${BINDIR}/flute ${BINDIR}/fluten; do \ if [ -f "$${f}" ] ; then \ rm $${f} ; \ fi \ done depend : # use -p to say that objects are in the bin dir # ${DEPEND} -pbin/ -- ${CFLAGS} -- ${SRCFILES} ${DEPEND} -- ${CFLAGS} -- ${SRCFILES} # Dependencies automatically created by makedepend (see depend target above). # # DO NOT DELETE THIS LINE -- make depend depends on it.