Skip to content

Commit

Permalink
Move sources to subdirectory, rename configfile.c
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar456 committed Jul 24, 2013
1 parent 2bd517e commit 33b1175
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
9 changes: 1 addition & 8 deletions Makefile.am
@@ -1,9 +1,2 @@

bin_PROGRAMS = rtp2httpd

rtp2httpd_SOURCES = rtp2httpd.c httpclients.c configfile.c

noinst_HEADERS = rtp2httpd.h

AM_CFLAGS= -DSYSCONFDIR=\"@sysconfdir@\"
SUBDIRS = src
dist_sysconf_DATA = rtp2httpd.conf
10 changes: 5 additions & 5 deletions configure.ac
@@ -1,8 +1,8 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT([rtp2httpd],[1.0])
AC_CONFIG_SRCDIR([rtp2httpd.c])
AC_CONFIG_SRCDIR([src/rtp2httpd.c])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AM_CONFIG_HEADER(src/config.h)

dnl Checks for programs.
AC_PROG_CC
Expand All @@ -24,8 +24,8 @@ CONFFILE_DIR=`(
)`
AC_DEFINE_UNQUOTED(CONFPATH, "$CONFFILE_DIR", system config directory)

AC_CONFIG_FILES([Makefile src/Makefile])

AC_OUTPUT(Makefile)
echo -e "\nAll done. Run make now."

AC_OUTPUT

echo -e "\nAll done. Run make now."
8 changes: 8 additions & 0 deletions src/Makefile.am
@@ -0,0 +1,8 @@

bin_PROGRAMS = rtp2httpd

rtp2httpd_SOURCES = rtp2httpd.c httpclients.c configuration.c

noinst_HEADERS = rtp2httpd.h

AM_CFLAGS= -DSYSCONFDIR=\"@sysconfdir@\"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 33b1175

Please sign in to comment.