Revert "preparing port to C++11"

This reverts commit a6c59ae5f0.
pull/11/head
Oona Räisänen 2015-08-08 08:59:29 +03:00
rodzic cf34bf5f45
commit 1760187fd0
17 zmienionych plików z 21 dodań i 17 usunięć

20
Makefile 100644
Wyświetl plik

@ -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)

Wyświetl plik

@ -1,2 +0,0 @@
SUBDIRS = src
dist_doc_DATA = README.md

Wyświetl plik

@ -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

Wyświetl plik

@ -22,7 +22,7 @@
<property name="resizable">False</property>
<property name="default_width">885</property>
<property name="default_height">633</property>
<property name="visible">True</property>
<property name="has_resize_grip">False</property>
<signal name="delete-event" handler="delete_event" swapped="no"/>
<child>
<object class="GtkBox" id="MainBox">

Wyświetl plik

@ -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