Skip to content

Commit

Permalink
Merge pull request #1 from qdii/master
Browse files Browse the repository at this point in the history
Added autoconf
  • Loading branch information
allan-simon committed Sep 20, 2013
2 parents 279cebe + e0755ba commit d3e4d6c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 80 deletions.
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBDIRS = src
38 changes: 38 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([linthesia], [0.6.2], [[email protected]])
AM_INIT_AUTOMAKE([foreign subdir-objects])
#AM_LANG([C++])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])

LT_PREREQ([2.2])
LT_INIT()

# Checks for programs.
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MKDIR_P
# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([string string.h iostream algorithm locale vector sstream queue functional map iomanip set exception sys/time.h])

PKG_CHECK_MODULES([GTKGLEXTMM],[gtkglextmm-1.2])
PKG_CHECK_MODULES([GTKMM],[gtkmm-2.4])
PKG_CHECK_MODULES([GCONFMM],[gconfmm-2.6])
PKG_CHECK_MODULES([ALSA],[alsa])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T

# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday])

AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
48 changes: 0 additions & 48 deletions src/Makefile

This file was deleted.

11 changes: 11 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
noinst_LTLIBRARIES = libmidi.la
libmidi_la_SOURCES = libmidi/Midi.cpp libmidi/MidiUtil.cpp libmidi/MidiTrack.cpp libmidi/MidiEvent.cpp

GRAPHDIR = $(top_srcdir)/graphics

bin_PROGRAMS = linthesia
linthesia_SOURCES = CompatibleSystem.cpp EdgeTracker.cpp KeyboardDisplay.cpp MenuLayout.cpp Renderer.cpp TextWriter.cpp TrackSelectionState.cpp DeviceTile.cpp FileSelector.cpp LinthesiaError.cpp MidiComm.cpp StatsState.cpp Tga.cpp TrackTile.cpp DrawingArea.cpp GameState.cpp main.cpp PlayingState.cpp StringTile.cpp TitleState.cpp UserSettings.cpp
linthesia_LDFLAGS = @GTKMM_LIBS@ @GCONFMM_LIBS@ @GTKGLEXTMM_LIBS@ @ALSA_LIBS@
linthesia_LDADD = libmidi.la
linthesia_CXXFLAGS = -std=c++11 -iquote $(top_srcdir)/libmidi
linthesia_CPPFLAGS = @GTKMM_CFLAGS@ @GCONFMM_CFLAGS@ @GTKGLEXTMM_CFLAGS@ @ALSA_CFLAGS@ -DGRAPHDIR="\"$(GRAPHDIR)\""
16 changes: 0 additions & 16 deletions src/libmidi/Makefile

This file was deleted.

0 comments on commit d3e4d6c

Please sign in to comment.