diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2024-05-05 19:27:28 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2024-05-05 19:40:37 +0200 |
commit | 3754a97778029ab7765910be8f8e867bab3dcae2 (patch) | |
tree | 8b14dba8c71cbe02190d6653c3f9df77be224bda | |
parent | a9eb1ab446d29ad32797953506ed39029b8d5e4c (diff) |
Add simple make-based build system
-rw-r--r-- | Makefile.bsd-wrapper | 7 | ||||
-rw-r--r-- | mk/.gitignore | 2 | ||||
-rw-r--r-- | mk/Makefile | 37 | ||||
-rw-r--r-- | mk/config.h | 10 | ||||
-rw-r--r-- | mk/shlib_version | 3 |
5 files changed, 55 insertions, 4 deletions
diff --git a/Makefile.bsd-wrapper b/Makefile.bsd-wrapper index 3836057..51fab78 100644 --- a/Makefile.bsd-wrapper +++ b/Makefile.bsd-wrapper @@ -1,7 +1,6 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.6 2013/08/13 07:07:21 guenther Exp $ +# $OpenBSD$ -SHARED_LIBS= pciaccess 2.0 - -CONFIGURE_ARGS+= --with-pciids-path=${X11BASE}/share +SUBDIR = mk +.include <bsd.subdir.mk> .include <bsd.xorg.mk> diff --git a/mk/.gitignore b/mk/.gitignore new file mode 100644 index 0000000..e9915b7 --- /dev/null +++ b/mk/.gitignore @@ -0,0 +1,2 @@ +!Makefile +!config.h diff --git a/mk/Makefile b/mk/Makefile new file mode 100644 index 0000000..6278bf8 --- /dev/null +++ b/mk/Makefile @@ -0,0 +1,37 @@ +# $OpenBSD$ + +PACKAGE_VERSION = 0.18.1 +LIB = pciaccess + +TOP = ${.CURDIR}/.. + +NOPROFILE = + +SRCS= \ + common_bridge.c \ + common_iterator.c \ + common_init.c \ + common_interface.c \ + common_io.c \ + common_capability.c \ + common_device_name.c \ + common_map.c \ + openbsd_pci.c + +CPPFLAGS += \ + -DHAVE_CONFIG_H \ + -DPCIIDS_PATH=\"${X11BASE}/share\" \ + -I$(TOP)/mk \ + -I$(TOP)/src \ + -I$(TOP)/include + +CFLAGS += -std=c99 + +EXTRA_PKGCONFIG_SUBST= "-e s/@PCIACCESS_LIBS@//" +PKGCONFIG = pciaccess.pc + +.PATH: $(TOP) +.PATH: $(TOP)/src + +.include <bsd.lib.mk> +.include <bsd.xorg.mk> diff --git a/mk/config.h b/mk/config.h new file mode 100644 index 0000000..9f15ea0 --- /dev/null +++ b/mk/config.h @@ -0,0 +1,10 @@ +/* $OpenBSD$ */ + +#pragma once + +#define HAVE_ERR_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +/* undef HAVE_ZLIB */ diff --git a/mk/shlib_version b/mk/shlib_version new file mode 100644 index 0000000..f846a6a --- /dev/null +++ b/mk/shlib_version @@ -0,0 +1,3 @@ +major=2 +minor=1 + |