#
#  Makefile for rtp
#
#  ** This file was automatically generated by the command:
#  opp_makemake -n -f -I/home/kahmann/omnetsim/ip-suite/Interface -I/home/kahmann/omnetsim/ip-suite/Socket -I/home/kahmann/omnetsim/ip-suite/UDP -I/home/kahmann/omnetsim/ip-suite/TCP -I/home/kahmann/omnetsim/ip-suite/IPNode -I/home/kahmann/omnetsim/ip-suite/IPProcessing -I/home/kahmann/omnetsim/ip-suite/QoS -I/home/kahmann/omnetsim/ip-suite/MAC_LLC -I/home/kahmann/omnetsim/ip-suite/ControlApps -laudiofile
#

# Name of target to be created (-o option)
TARGET = rtp

# User interface (uncomment one) (-u option)
# USERIF_LIBS=$(CMDENV_LIBS)
USERIF_LIBS=$(TKENV_LIBS)

# uncomment 1 of the 3 lines to support either serial or parallel operation
KERNEL_LIBS=$(STD_KERNEL_LIBS)
# KERNEL_LIBS=$(PVM_KERNEL_LIBS)
# KERNEL_LIBS=$(MPI_KERNEL_LIBS)

# .ned or .h include paths with -I
INCLUDE_PATH= -I/home/kahmann/omnetsim/ip-suite/Interface -I/home/kahmann/omnetsim/ip-suite/Socket -I/home/kahmann/omnetsim/ip-suite/UDP -I/home/kahmann/omnetsim/ip-suite/TCP -I/home/kahmann/omnetsim/ip-suite/IPNode -I/home/kahmann/omnetsim/ip-suite/IPProcessing -I/home/kahmann/omnetsim/ip-suite/QoS -I/home/kahmann/omnetsim/ip-suite/MAC_LLC -I/home/kahmann/omnetsim/ip-suite/ControlApps

# misc additional object and library files to link
EXRA_OBJS=

# object files in subdirectories
SUBDIR_OBJS=

# Additional libraries (-L option -l option)
LIBS= -laudiofile

#------------------------------------------------------------------------------

NEDC=nedc
MSGC=opp_msgc
CXX=g++
CC=gcc
AR=ar cr
SHLIB_LD=g++ -shared -fPIC
MAKEDEPEND=opp_makedep -Y --objdirtree

CFLAGS=-gstabs+3 -Wall -Wno-unused -pipe -fpermissive  -fPIC
NEDCFLAGS=-Wno-unused
LDFLAGS=
EXE_SUFFIX=

OMNETPP_INCL_DIR=/usr/local/omnetpp/include
OMNETPP_LIB_DIR=/usr/local/omnetpp/lib

TK_LIBS=-L/usr/X11R6/lib -lX11 -ltk8.4 -ltcl8.4
MPI_LIBS=
PVM_LIBS=
SYS_LIBS=-ldl -lstdc++ 
SYS_LIBS_PURE=-ldl -lsocket -lnsl -lm $(shell $(CXX) -print-file-name=libstdc++.a)

# User interface libs
CMDENV_LIBS=-lenvir -lcmdenv
TKENV_LIBS=-lenvir -ltkenv $(TK_LIBS)

# Simulation kernel
STD_KERNEL_LIBS=-lsim_std
MPI_KERNEL_LIBS=-lsim_mpi $(MPI_LIBS)
PVM_KERNEL_LIBS=-lsim_pvm $(PVM_LIBS)

# Simulation kernel and user interface libraries
OMNETPP_LIBS=-L$(OMNETPP_LIB_DIR) $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)

COPTS=$(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)
NEDCOPTS=$(CFLAGS) $(NEDCFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)

#------------------------------------------------------------------------------

# Object files from this directory to link
OBJS= RTCPModule_n.o RTPApplication_n.o RTPHost_n.o RTPLayer_n.o RTPModule_n.o RTPPayloadReceiver_n.o RTPPayloadSender_n.o RTPProfile_n.o  RTCPEndsystemModule.o  RTCPPacket.o RTPApplication.o  RTPEndsystemModule.o  RTPInnerPacket.o RTPInterfacePacket.o   RTPPacket.o RTPParticipantInfo.o RTPPayloadReceiver.o  RTPPayloadSender.o  RTPProfile.o  RTPReceiverInfo.o RTPSSRCGate.o RTPSenderControlMessage.o RTPSenderInfo.o RTPSenderStatusMessage.o reports.o sdes.o

$(TARGET): $(OBJS) Makefile
	

purify: $(OBJS) $(EXRA_OBJS)   Makefile
	purify $(CXX) $(LDFLAGS) $(OBJS) $(EXRA_OBJS) $(SUBDIR_OBJS) $(LIBS) -L$(OMNETPP_LIB_DIR) $(KERNEL_LIBS) $(USERIF_LIBS) $(SYS_LIBS_PURE) -o $(TARGET).pure

RTCPModule_n.o: RTCPModule_n.cc
	$(CXX) -c $(NEDCOPTS) RTCPModule_n.cc

RTCPModule_n.cc: RTCPModule.ned
	$(NEDC) $(INCLUDE_PATH) RTCPModule.ned

RTPApplication_n.o: RTPApplication_n.cc
	$(CXX) -c $(NEDCOPTS) RTPApplication_n.cc

RTPApplication_n.cc: RTPApplication.ned
	$(NEDC) $(INCLUDE_PATH) RTPApplication.ned

RTPHost_n.o: RTPHost_n.cc
	$(CXX) -c $(NEDCOPTS) RTPHost_n.cc

RTPHost_n.cc: RTPHost.ned
	$(NEDC) $(INCLUDE_PATH) RTPHost.ned

RTPLayer_n.o: RTPLayer_n.cc
	$(CXX) -c $(NEDCOPTS) RTPLayer_n.cc

RTPLayer_n.cc: RTPLayer.ned
	$(NEDC) $(INCLUDE_PATH) RTPLayer.ned

RTPModule_n.o: RTPModule_n.cc
	$(CXX) -c $(NEDCOPTS) RTPModule_n.cc

RTPModule_n.cc: RTPModule.ned
	$(NEDC) $(INCLUDE_PATH) RTPModule.ned

RTPPayloadReceiver_n.o: RTPPayloadReceiver_n.cc
	$(CXX) -c $(NEDCOPTS) RTPPayloadReceiver_n.cc

RTPPayloadReceiver_n.cc: RTPPayloadReceiver.ned
	$(NEDC) $(INCLUDE_PATH) RTPPayloadReceiver.ned

RTPPayloadSender_n.o: RTPPayloadSender_n.cc
	$(CXX) -c $(NEDCOPTS) RTPPayloadSender_n.cc

RTPPayloadSender_n.cc: RTPPayloadSender.ned
	$(NEDC) $(INCLUDE_PATH) RTPPayloadSender.ned

RTPProfile_n.o: RTPProfile_n.cc
	$(CXX) -c $(NEDCOPTS) RTPProfile_n.cc

RTPProfile_n.cc: RTPProfile.ned
	$(NEDC) $(INCLUDE_PATH) RTPProfile.ned

RTCPEndsystemModule.o: RTCPEndsystemModule.cc
	$(CXX) -c $(COPTS) RTCPEndsystemModule.cc

RTCPPacket.o: RTCPPacket.cc
	$(CXX) -c $(COPTS) RTCPPacket.cc

RTPApplication.o: RTPApplication.cc
	$(CXX) -c $(COPTS) RTPApplication.cc

RTPEndsystemModule.o: RTPEndsystemModule.cc
	$(CXX) -c $(COPTS) RTPEndsystemModule.cc

RTPInnerPacket.o: RTPInnerPacket.cc
	$(CXX) -c $(COPTS) RTPInnerPacket.cc

RTPInterfacePacket.o: RTPInterfacePacket.cc
	$(CXX) -c $(COPTS) RTPInterfacePacket.cc

RTPPacket.o: RTPPacket.cc
	$(CXX) -c $(COPTS) RTPPacket.cc

RTPParticipantInfo.o: RTPParticipantInfo.cc
	$(CXX) -c $(COPTS) RTPParticipantInfo.cc

RTPPayloadReceiver.o: RTPPayloadReceiver.cc
	$(CXX) -c $(COPTS) RTPPayloadReceiver.cc

RTPPayloadSender.o: RTPPayloadSender.cc
	$(CXX) -c $(COPTS) RTPPayloadSender.cc

RTPProfile.o: RTPProfile.cc
	$(CXX) -c $(COPTS) RTPProfile.cc

RTPReceiverInfo.o: RTPReceiverInfo.cc
	$(CXX) -c $(COPTS) RTPReceiverInfo.cc

RTPSSRCGate.o: RTPSSRCGate.cc
	$(CXX) -c $(COPTS) RTPSSRCGate.cc

RTPSenderControlMessage.o: RTPSenderControlMessage.cc
	$(CXX) -c $(COPTS) RTPSenderControlMessage.cc

RTPSenderInfo.o: RTPSenderInfo.cc
	$(CXX) -c $(COPTS) RTPSenderInfo.cc

RTPSenderStatusMessage.o: RTPSenderStatusMessage.cc
	$(CXX) -c $(COPTS) RTPSenderStatusMessage.cc

reports.o: reports.cc
	$(CXX) -c $(COPTS) reports.cc

sdes.o: sdes.cc
	$(CXX) -c $(COPTS) sdes.cc


doc: neddoc.html htmldocs

neddoc.html:  RTCPModule.ned RTPApplication.ned RTPHost.ned RTPLayer.ned RTPModule.ned RTPPayloadReceiver.ned RTPPayloadSender.ned RTPProfile.ned
	@opp_neddoc  RTCPModule.ned RTPApplication.ned RTPHost.ned RTPLayer.ned RTPModule.ned RTPPayloadReceiver.ned RTPPayloadSender.ned RTPProfile.ned > neddoc.html
	@echo File neddoc.html generated.

htmldocs:
	@doxygen -g- | sed "s/^PROJECT_NAME.*/PROJECT_NAME = rtp/;\
	s|^INPUT *=.*|INPUT = . |;\
	s/^EXTRACT_ALL *=.*/EXTRACT_ALL = yes/;\
	s/^EXTRACT_PRIVATE *=.*/EXTRACT_PRIVATE = yes/;\
	s/^EXCLUDE_PATTERNS *=.*/EXCLUDE_PATTERNS = *_n.cc *_n.h/;\
	s/^ALPHABETICAL_INDEX *=.*/ALPHABETICAL_INDEX = yes/;\
	s/^HTML_OUTPUT *=.*/HTML_OUTPUT = htmldoc/;\
	s/^GENERATE_LATEX *=.*/GENERATE_LATEX = no/;\
	s/^GENERATE_TREEVIEW *=.*/GENERATE_TREEVIEW = yes/;\
	s/^HIDE_UNDOC_RELATIONS *=.*/HIDE_UNDOC_RELATIONS = no/;\
	s|^TAGFILES *=.*|TAGFILES = /usr/local/omnetpp/doc/api/opptags.xml=/usr/local/omnetpp/doc/api|;\
	s|^GENERATE_TAGFILE *=.*|GENERATE_TAGFILE = htmldoc/tags.xml|;\
	s/^QUIET *=.*/QUIET = yes/" > doxy.cfg
	@doxygen doxy.cfg
	@echo Code documentation generated. Now, point your web browser to ./htmldoc/index.html.

clean:
	rm -f *.o *_n.cc *_n.h *_m.cc *_m.h $(TARGET)$(EXE_SUFFIX)
	rm -f *.vec *.sca
	rm -rf neddoc.html htmldoc

depend:
	$(MAKEDEPEND) $(INCLUDE_PATH) -- *.cc
	# $(MAKEDEPEND) $(INCLUDE_PATH) -fMakefile.in -- *.cc

re-makemake:
	opp_makemake -f  -n -I/home/kahmann/omnetsim/ip-suite/Interface -I/home/kahmann/omnetsim/ip-suite/Socket -I/home/kahmann/omnetsim/ip-suite/UDP -I/home/kahmann/omnetsim/ip-suite/TCP -I/home/kahmann/omnetsim/ip-suite/IPNode -I/home/kahmann/omnetsim/ip-suite/IPProcessing -I/home/kahmann/omnetsim/ip-suite/QoS -I/home/kahmann/omnetsim/ip-suite/MAC_LLC -I/home/kahmann/omnetsim/ip-suite/ControlApps -laudiofile   #recreate Makefile

re-makemake-m:
	opp_makemake -f -m  -n -I/home/kahmann/omnetsim/ip-suite/Interface -I/home/kahmann/omnetsim/ip-suite/Socket -I/home/kahmann/omnetsim/ip-suite/UDP -I/home/kahmann/omnetsim/ip-suite/TCP -I/home/kahmann/omnetsim/ip-suite/IPNode -I/home/kahmann/omnetsim/ip-suite/IPProcessing -I/home/kahmann/omnetsim/ip-suite/QoS -I/home/kahmann/omnetsim/ip-suite/MAC_LLC -I/home/kahmann/omnetsim/ip-suite/ControlApps -laudiofile   #recreate Makefile.in


# DO NOT DELETE THIS LINE -- make depend depends on it.
RTCPEndsystemModule.o: RTCPEndsystemModule.cc \
  /home/kahmann/omnetsim/ip-suite/Interface/SocketInterfacePacket.h \
  /home/kahmann/omnetsim/ip-suite/Socket/sockets.h \
  /home/kahmann/omnetsim/ip-suite/Interface/ip_address.h \
  types.h \
  RTCPEndsystemModule.h \
  RTPInnerPacket.h \
  RTPParticipantInfo.h \
  RTPSenderInfo.h \
  RTPReceiverInfo.h \
  /home/kahmann/omnetsim/ip-suite/Socket/pcb.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h \
  /home/kahmann/omnetsim/ip-suite/Interface/IPInterfacePacket.h \
  RTPPacket.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  RTCPPacket.h \
  reports.h \
  sdes.h
RTCPModule_n.o: RTCPModule_n.cc
RTCPPacket.o: RTCPPacket.cc \
  types.h \
  RTCPPacket.h \
  reports.h \
  sdes.h
RTPApplication.o: RTPApplication.cc \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  types.h \
  RTPApplication.h \
  RTPInterfacePacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h
RTPApplication_n.o: RTPApplication_n.cc
RTPEndsystemModule.o: RTPEndsystemModule.cc \
  /home/kahmann/omnetsim/ip-suite/Interface/SocketInterfacePacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/ip-suite/Interface/ip_address.h \
  RTPEndsystemModule.h \
  RTPInterfacePacket.h \
  RTPInnerPacket.h \
  RTPProfile.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Socket/sockets.h \
  /home/kahmann/omnetsim/ip-suite/Socket/pcb.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h \
  /home/kahmann/omnetsim/ip-suite/Interface/IPInterfacePacket.h \
  types.h \
  RTPPacket.h \
  RTPSSRCGate.h
RTPHost_n.o: RTPHost_n.cc
RTPInnerPacket.o: RTPInnerPacket.cc \
  RTPInnerPacket.h \
  RTPPacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  types.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPInterfacePacket.o: RTPInterfacePacket.cc \
  RTPInterfacePacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  types.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPLayer_n.o: RTPLayer_n.cc
RTPModule_n.o: RTPModule_n.cc
RTPPacket.o: RTPPacket.cc \
  types.h \
  RTPPacket.h
RTPParticipantInfo.o: RTPParticipantInfo.cc \
  types.h \
  RTPParticipantInfo.h \
  reports.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPPacket.h \
  RTCPPacket.h \
  sdes.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPPayloadReceiver.o: RTPPayloadReceiver.cc \
  RTPPayloadReceiver.h \
  RTPPacket.h \
  RTPInnerPacket.h \
  types.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPPayloadReceiver_n.o: RTPPayloadReceiver_n.cc
RTPPayloadSender.o: RTPPayloadSender.cc \
  RTPPayloadSender.h \
  types.h \
  RTPInnerPacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPPacket.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPPayloadSender_n.o: RTPPayloadSender_n.cc
RTPProfile.o: RTPProfile.cc \
  RTPProfile.h \
  RTPInnerPacket.h \
  RTPPayloadSender.h \
  RTPPayloadReceiver.h \
  RTPSSRCGate.h \
  RTPParticipantInfo.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  types.h \
  RTPPacket.h \
  RTPSenderControlMessage.h \
  RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h \
  RTCPPacket.h \
  reports.h \
  sdes.h
RTPProfile_n.o: RTPProfile_n.cc
RTPReceiverInfo.o: RTPReceiverInfo.cc \
  types.h \
  RTPReceiverInfo.h \
  RTPParticipantInfo.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPPacket.h \
  RTCPPacket.h \
  reports.h \
  sdes.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPSSRCGate.o: RTPSSRCGate.cc \
  types.h \
  RTPSSRCGate.h \
  RTPParticipantInfo.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPPacket.h \
  RTCPPacket.h \
  reports.h \
  sdes.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPSenderControlMessage.o: RTPSenderControlMessage.cc \
  RTPSenderControlMessage.h
RTPSenderInfo.o: RTPSenderInfo.cc \
  types.h \
  RTPSenderInfo.h \
  RTPParticipantInfo.h \
  reports.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  RTPPacket.h \
  RTCPPacket.h \
  sdes.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPSenderStatusMessage.o: RTPSenderStatusMessage.cc \
  RTPSenderStatusMessage.h \
  types.h
reports.o: reports.cc \
  types.h \
  reports.h
sdes.o: sdes.cc \
  types.h \
  sdes.h
