diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc38a36 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = gcc + +CFLAGS = -Wall -Wextra -std=gnu99 -pedantic -g -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4 +GTKCFLAGS = `pkg-config --cflags gtk+-3.0` +GTKLIBS = `pkg-config --libs gtk+-3.0` + +OFLAGS = -O3 + +OBJECTS = common.o modespec.o gui.o video.o vis.o sync.o pcm.o fsk.o slowrx.o + +all: slowrx + +slowrx: $(OBJECTS) + $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(GTKLIBS) -lfftw3 -lgthread-2.0 -lasound -lm -lpthread + +%.o: %.c common.h + $(CC) $(CFLAGS) $(GTKCFLAGS) $(OFLAGS) -c -o $@ $< + +clean: + rm -f slowrx $(OBJECTS) diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index c6231c2..0000000 --- a/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -SUBDIRS = src -dist_doc_DATA = README.md diff --git a/ui/aboutdialog.ui b/aboutdialog.ui similarity index 100% rename from ui/aboutdialog.ui rename to aboutdialog.ui diff --git a/src/common.cc b/common.c similarity index 100% rename from src/common.cc rename to common.c diff --git a/src/common.h b/common.h similarity index 100% rename from src/common.h rename to common.h diff --git a/configure.ac b/configure.ac deleted file mode 100644 index bf8f559..0000000 --- a/configure.ac +++ /dev/null @@ -1,10 +0,0 @@ -AC_INIT([slowrx], [0.1], [oona@kapsi.fi]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -AC_PROG_CXX -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([ - Makefile - src/Makefile -]) -PKG_CHECK_MODULES([GTKMM], [gtkmm-3.0 >= 3.8.0]) -AC_OUTPUT diff --git a/src/fsk.cc b/fsk.c similarity index 100% rename from src/fsk.cc rename to fsk.c diff --git a/src/gui.cc b/gui.c similarity index 100% rename from src/gui.cc rename to gui.c diff --git a/src/modespec.cc b/modespec.c similarity index 100% rename from src/modespec.cc rename to modespec.c diff --git a/src/pcm.cc b/pcm.c similarity index 100% rename from src/pcm.cc rename to pcm.c diff --git a/ui/prefs.ui b/prefs.ui similarity index 100% rename from ui/prefs.ui rename to prefs.ui diff --git a/src/slowrx.cc b/slowrx.c similarity index 100% rename from src/slowrx.cc rename to slowrx.c diff --git a/ui/slowrx.ui b/slowrx.ui similarity index 99% rename from ui/slowrx.ui rename to slowrx.ui index 7bc64c7..85e5d62 100644 --- a/ui/slowrx.ui +++ b/slowrx.ui @@ -22,7 +22,7 @@ False 885 633 - True + False diff --git a/src/Makefile.am b/src/Makefile.am deleted file mode 100644 index 3aeacc4..0000000 --- a/src/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -bin_PROGRAMS = slowrx -slowrx_CPPFLAGS = $(GTKMM_CFLAGS) -slowrx_LDADD = $(GTKMM_LIBS) -slowrx_SOURCES = slowrx.cc common.cc gui.cc fsk.cc modespec.cc pcm.cc sync.cc video.cc vis.cc diff --git a/src/sync.cc b/sync.c similarity index 100% rename from src/sync.cc rename to sync.c diff --git a/src/video.cc b/video.c similarity index 100% rename from src/video.cc rename to video.c diff --git a/src/vis.cc b/vis.c similarity index 100% rename from src/vis.cc rename to vis.c