From: drowe67 Date: Thu, 11 Oct 2012 05:16:50 +0000 (+0000) Subject: first pass at Makefile for Linux X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=49c97b79de999e36bd52a91f3b33dbf48acc721e;p=freetel-svn-tracking.git first pass at Makefile for Linux git-svn-id: https://svn.code.sf.net/p/freetel/code@742 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/fdmdv2/src/Makefile.linux b/fdmdv2/src/Makefile.linux new file mode 100644 index 00000000..279a17a6 --- /dev/null +++ b/fdmdv2/src/Makefile.linux @@ -0,0 +1,43 @@ +# src/Makefile.linux +# David Rowe 10 Oct 2012 +# test Makefile to help David R get up to speed + +WX_CONFIG=/home/david/Desktop/wxWidgets-2.9.4/build_gtk/wx-config +WX_CPPFLAGS = $(shell $(WX_CONFIG) --cxxflags) +WX_LIBS = $(shell $(WX_CONFIG) --libs core, base, aui) +CODEC2_INC=-I/home/david/codec2-dev/src +CODEC2_LIB=/home/david/codec2-dev/src/.libs/libcodec2.a +CPP_FLAGS = $(WX_CPPFLAGS) $(CODEC2_INC) -I../extern/include -g -Wall +LIBS = $(WX_LIBS) $(CODEC2_LIB) -lm /usr/lib/libportaudiocpp.so.0 -lpthread +#LIBS = $(WX_LIBS) $(CODEC2_LIB) -lm -lpthread + +OBJS = topFrame.o \ +fdmdv2_main.o \ +fdmdv2_plot.o \ +fdmdv2_plot_scalar.o \ +fdmdv2_plot_scatter.o \ +fdmdv2_plot_spectrum.o \ +fdmdv2_plot_waterfall.o \ +fdmdv2_pa_wrapper.o \ +dlg_about.o \ +dlg_audio.o \ +dlg_comports.o \ +dlg_options.o + +all: fdmdv2 + +hworld.o: /home/david/tmp/hworld.cpp + g++ $(CPP_FLAGS) -c $< -o $@ + +hworld: hworld.o + g++ -o hworld hworld.o $(CPP_FLAGS) $(LIBS) + +fdmdv2: $(OBJS) + g++ -o fdmdv2 $(OBJS) $(CPP_FLAGS) $(LIBS) + +%.o: %.cpp + g++ $(CPP_FLAGS) -c $< -o $@ + +clean: + rm -f *.o fdmdv2 +