project-setup: project prototype files
This commit is contained in:
commit
02ddb7fa2a
2
COPYING
Normal file
2
COPYING
Normal file
@ -0,0 +1,2 @@
|
||||
NO LICENSE HAS BEEN SPECIFIED OR GRANTED FOR THIS WORK,
|
||||
WHICH WAS PREPARED BY: Kamal Mostafa <kamal@whence.com>.
|
1
Makefile.am
Normal file
1
Makefile.am
Normal file
@ -0,0 +1 @@
|
||||
SUBDIRS = src
|
51
configure.ac
Normal file
51
configure.ac
Normal file
@ -0,0 +1,51 @@
|
||||
dnl
|
||||
dnl configure.ac Generated by project-setup
|
||||
dnl
|
||||
|
||||
AC_DEFUN([PKG_NAME], [minimodem])
|
||||
AC_DEFUN([PKG_VERSION], [0.1.0])
|
||||
AC_DEFUN([PKG_AUTHOR], [Kamal Mostafa <kamal@whence.com>])
|
||||
AC_DEFUN([PKG_BUGS_TO], [kamal@whence.com])
|
||||
|
||||
|
||||
AC_PREREQ([2.64])
|
||||
|
||||
AC_INIT(PKG_NAME, PKG_VERSION, PKG_BUGS_TO)
|
||||
|
||||
dnl Release versioning info
|
||||
VERSION=PKG_VERSION
|
||||
AC_SUBST(VERSION)
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_CONFIG_SRCDIR([src/Makefile.in])
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
# AC_PROG_RANLIB
|
||||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_MODULES(DEPS, [
|
||||
glib-2.0
|
||||
])
|
||||
AC_SUBST(DEPS_CFLAGS)
|
||||
AC_SUBST(DEPS_LIBS)
|
||||
|
||||
# Checks for header files.
|
||||
# AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
# AC_HEADER_STDBOOL
|
||||
# AC_TYPE_PID_T
|
||||
|
||||
# Checks for library functions.
|
||||
# AC_FUNC_FORK
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
src/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
12
src/Makefile.am
Normal file
12
src/Makefile.am
Normal file
@ -0,0 +1,12 @@
|
||||
AM_CFLAGS = -Wall -Werror
|
||||
|
||||
INCLUDES = $(DEPS_CFLAGS)
|
||||
|
||||
|
||||
bin_PROGRAMS = minimodem
|
||||
|
||||
minimodem_LDADD = $(DEPS_LIBS)
|
||||
minimodem_VERSION = 0.1.1
|
||||
minimodem_SOURCES = junkprog.c
|
||||
|
||||
|
11
src/junkprog.c
Normal file
11
src/junkprog.c
Normal file
@ -0,0 +1,11 @@
|
||||
#define G_LOG_DOMAIN "minimodem"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
g_debug("hello world from junkprog");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user