aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-04 22:52:34 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-04 22:52:34 +0100
commit980e19cf4c76a0194d343563dbce4d34ea7bf27a (patch)
treeea41c8c246379516b69394a07b75acfc71033667
parentimport build system and adapt or library (diff)
downloadlibhaiku-980e19cf4c76a0194d343563dbce4d34ea7bf27a.tar.gz
libhaiku-980e19cf4c76a0194d343563dbce4d34ea7bf27a.tar.bz2
libhaiku-980e19cf4c76a0194d343563dbce4d34ea7bf27a.tar.xz
m + makefile + configure
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r--Makefile.in68
-rwxr-xr-xconfigure49
-rw-r--r--mk/dist.mk2
-rw-r--r--mk/lang-c.mk2
4 files changed, 119 insertions, 2 deletions
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 <maandree@member.fsf.org>
+#
+# 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 <maandree@member.fsf.org>
+#
+# 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 <<EOF
+
+You can now run 'make && make install'.
+
+EOF
+
diff --git a/mk/dist.mk b/mk/dist.mk
index e29f0cd..9f8c48b 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -40,7 +40,7 @@ __EVERYTHING_SRC = $(foreach F,$(_SRC),src/$(F))
__EVERYTHING_LOCALE = $(foreach L,$(LOCALES),po/$(L).po)
__EVERYTHING_SHELL = $(foreach F,$(_AUTO_COMPLETE),src/$(F).auto-completion) \
$(foreach F,$(_AUTO_COMPLETE),$(foreac F,$(_SHELL_LOCALES),src/$(F).$(L),auto-completion))
-__EVERYTHING_MK_ = all clean copy dist empty i18n lang-c lowerpath man path prologue tags texinfo tools
+__EVERYTHING_MK_ = all clean copy dist empty i18n lang-c lowerpath man path prologue shell tags texinfo tools
__EVERYTHING_MK = $(foreach F,$(__EVERYTHING_MK_),mk/$(F).mk) mk/configure mk/README configure Makefile.in
__EVERYTHING_MAN = $(foreach S,$(_MAN_PAGE_SECTIONS),$(foreach P,$(_MAN_$(S)),doc/man/$(P).$(S))) \
$(foreach S,$(_MAN_PAGE_SECTIONS),$(foreach L,$(MAN_LOCALES),$(foreach P,$(_MAN_$(L)_$(S)),doc/man/$(P).$(L).$(S))))
diff --git a/mk/lang-c.mk b/mk/lang-c.mk
index 342d047..554c9c4 100644
--- a/mk/lang-c.mk
+++ b/mk/lang-c.mk
@@ -191,7 +191,7 @@ endif
# BUILD RULES:
.PHONY: cmd-c
-cmd-c: $(foreach B,$(_BIN) $(_SBIN) $(_LIBEXEC))
+cmd-c: $(foreach B,$(_BIN) $(_SBIN) $(_LIBEXEC),bin/$(B))
.PHONY: lib-c
lib-c: $(foreach B,$(_LIB),bin/$(B).so)