#------------------------------------------------------------------------------- # # # Notes: #------------------------------------------------------------------------------- APPNAME = streamRecorder #Compiler: CC=g++ -std=c++11 #Compiler flags CFLAGS=-c -g -Wall #Directories DIRlib= /usr/local/lib incDIR= /usr/local/include INCLUIDES=$(shell pkg-config --cflags glib-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0 flac) LIBS=$(shell pkg-config --libs glib-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0 flac) #main function mainP= main #------------------------------------------------------------------------------- all: Project Project: mainP.o StreamRecorder.o $(CC) -o $(APPNAME) \ $(mainP).o \ StreamRecorder.o \ -L $(DIRlib) \ -I $(incDIR) \ $(LIBS) StreamRecorder.o: StreamRecorder.cpp $(CC) $(INCLUIDES) $(CFLAGS) \ StreamRecorder.cpp mainP.o: $(mainP).cpp $(CC) $(INCLUIDES) $(CFLAGS) \ $(mainP).cpp