#
#  Makefile for AVProfile
#
#  ** 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 -I/home/kahmann/omnetsim/rtp/rtp -laudiofile
#

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

# 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 -I/home/kahmann/omnetsim/rtp/rtp

# 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=   RTPAVProfile.o RTPAVProfilePayload10Receiver.o RTPAVProfilePayload10Sender.o RTPAVProfilePayload32Receiver.o RTPAVProfilePayload32Sender.o RTPAVProfileSampleBasedAudioReceiver.o RTPAVProfileSampleBasedAudioSender.o RTPMpegPacket.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

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

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

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

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

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

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

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

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


doc: neddoc.html htmldocs

neddoc.html: 
	@opp_neddoc  > neddoc.html
	@echo File neddoc.html generated.

htmldocs:
	@doxygen -g- | sed "s/^PROJECT_NAME.*/PROJECT_NAME = AVProfile/;\
	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 -I/home/kahmann/omnetsim/rtp/rtp -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 -I/home/kahmann/omnetsim/rtp/rtp -laudiofile   #recreate Makefile.in


# DO NOT DELETE THIS LINE -- make depend depends on it.
RTPAVProfile.o: RTPAVProfile.cc \
  RTPAVProfile.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPProfile.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPInnerPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSSRCGate.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderControlMessage.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPAVProfilePayload10Receiver.o: RTPAVProfilePayload10Receiver.cc \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  RTPAVProfilePayload10Receiver.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadReceiver.h \
  RTPAVProfileSampleBasedAudioReceiver.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h
RTPAVProfilePayload10Sender.o: RTPAVProfilePayload10Sender.cc \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderControlMessage.h \
  RTPAVProfilePayload10Sender.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadSender.h \
  RTPAVProfileSampleBasedAudioSender.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPInnerPacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPAVProfilePayload32Receiver.o: RTPAVProfilePayload32Receiver.cc \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadReceiver.h \
  RTPAVProfilePayload32Receiver.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  RTPMpegPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h
RTPAVProfilePayload32Sender.o: RTPAVProfilePayload32Sender.cc \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPInnerPacket.h \
  RTPAVProfilePayload32Sender.h \
  RTPMpegPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderControlMessage.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadSender.h
RTPAVProfileSampleBasedAudioReceiver.o: RTPAVProfileSampleBasedAudioReceiver.cc \
  RTPAVProfileSampleBasedAudioReceiver.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPInnerPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadReceiver.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderControlMessage.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPAVProfileSampleBasedAudioSender.o: RTPAVProfileSampleBasedAudioSender.cc \
  RTPAVProfileSampleBasedAudioSender.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPayloadSender.h \
  /home/kahmann/omnetsim/rtp/rtp/types.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPInnerPacket.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_addr.h \
  /home/kahmann/omnetsim/ip-suite/Interface/in_port.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPPacket.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderControlMessage.h \
  /home/kahmann/omnetsim/rtp/rtp/RTPSenderStatusMessage.h \
  /home/kahmann/omnetsim/ip-suite/Interface/basic_consts.h
RTPMpegPacket.o: RTPMpegPacket.cc \
  RTPMpegPacket.h
