From 980e19cf4c76a0194d343563dbce4d34ea7bf27a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 4 Jan 2016 22:52:34 +0100 Subject: m + makefile + configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile.in | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure | 49 +++++++++++++++++++++++++++++++++++++++++++ mk/dist.mk | 2 +- mk/lang-c.mk | 2 +- 4 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 Makefile.in create mode 100755 configure diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..44c5e99 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,68 @@ +# Copyright (C) 2016 Mattias Andrée +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + + +### This file will be stored to Makefile once you have run ./configure. ### +### See INSTALL for information on how to install this package. ### + + + +##### What is below this line is configurable, but is seldom useful. ##### + + +# Additional options for compiling info and HTML manuals. +INFO_FLAGS = + +# Additional options for compiling DVI, PDF, and PostScript manuals. +TEXINFO_FLAGS = + +# The name of the package as it should be installed. +PKGNAME = libhaiku + + + +##### Nothing interesting below this. ##### + + +# In case you want add some configurations. Primarily +# intended for maintainers. Perhaps add GPG_KEY here. +# Of course, you can declare everthing with ./configure, +# but with this you are less likely to forget it. +-include .make-configurations + + +# YOU, AS A USER, SHOULD NOT CHANGE THESE VARIABLES. {{ +# They specify how the reusable makefiles in mk/ shall behave. + +# Package information. +_PROJECT = libhaiku +_VERSION = 1.0 + +# Used by mk/lang-c.mk +_C_STD = c99 +_PEDANTIC = yes +_LIB = libhaiku +_OBJ_libhaiku = libhaiku +_SO_VERSION_libhaiku = $(_VERSION) +_SO_MAJOR_libhaiku = $(shell echo $(_SO_VERSION_libhaiku) | cut -d . -f 1) +_HEADER_DIRLEVELS = 1 +_CPPFLAGS = -D'PACKAGE="$(PKGNAME)"' -D'PROGRAM_VERSION="$(_VERSION)"' + +# Used by mk/copy.mk +_COPYING = COPYING + +# Used by mk/dist.mk +___EVERYTHING_H = libhaiku.h +_EVERYTHING = $(foreach F,$(___EVERYTHING_H),src/$(F).h) \ + $(__EVERYTHING_ALL_COMMON) + +# }} + + +# All of the make rules and the configurations. +include $(v)mk/all.mk + diff --git a/configure b/configure new file mode 100755 index 0000000..219363b --- /dev/null +++ b/configure @@ -0,0 +1,49 @@ +#!/bin/sh + +# Copyright (C) 2016 Mattias Andrée +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + + +# Run './configure --help' for usage information. + + +PKGNAME=libhaiku +MAN_SECTION_SUFFIX= +MAN_SECTION=1 + + +list_optional_features_help () +{ + true +} + +unrecognised_argument () +{ + option="${1}" + case "${option}" in + (--build | --target | --host) + incomplete="${option}" ;; + (--build=*) + ;; + (--target=*) + ;; + (--host=*) + ;; + (*) + ;; + esac +} + +. "$(dirname "${0}")"/mk/configure + + +cat <