1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-14 19:24:13 +03:00

always include config.h from Makefile

This commit is contained in:
Kay Sievers 2008-09-19 23:03:49 -07:00
parent a4354f9385
commit 38f27948cd
30 changed files with 30 additions and 90 deletions

9
Makefile.am.inc Normal file
View File

@ -0,0 +1,9 @@
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
AM_CFLAGS =
AM_LDFLAGS =

View File

@ -1,13 +1,9 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
ata_id
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION \
-UUSE_SELINUX
ata_id_SOURCES = \
ata_id.c \
../../udev/lib/libudev.h \

View File

@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
cdrom_id
@ -6,11 +8,6 @@ udevrulesdir = $(udev_prefix)/lib/udev/rules.d
dist_udevrules_DATA = \
60-cdrom_id.rules
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
cdrom_id_SOURCES = \
cdrom_id.c \
../../udev/lib/libudev.h \

View File

@ -1,11 +1,9 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
collect
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\"
distclean-local:
rm -f Makefile.in

View File

@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
edd_id
@ -6,11 +8,6 @@ udevrulesdir = $(udev_prefix)/lib/udev/rules.d
dist_udevrules_DATA = \
61-persistent-storage-edd.rules
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
edd_id_SOURCES = \
edd_id.c \
../../udev/lib/libudev.h \

View File

@ -1,12 +1,9 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
create_floppy_devices
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
create_floppy_devices_SOURCES = \
create_floppy_devices.c \
../../udev/lib/libudev.h \

View File

@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
fstab_import
@ -6,11 +8,6 @@ udevrulesdir = $(udev_prefix)/lib/udev/rules.d
dist_udevrules_DATA = \
79-fstab_import.rules
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
fstab_import_SOURCES = \
fstab_import.c \
../../udev/lib/libudev.h \

View File

@ -13,8 +13,6 @@
#define _GNU_SOURCE 1
#endif
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -1,12 +1,9 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
scsi_id
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
scsi_id_SOURCES = \
scsi_id.c \
scsi_serial.c \

View File

@ -14,8 +14,6 @@
* Free Software Foundation version 2 of the License.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -1,12 +1,9 @@
include $(top_srcdir)/Makefile.am.inc
udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
usb_id
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
usb_id_SOURCES = \
usb_id.c \
../../udev/lib/libudev.h \

View File

@ -11,8 +11,6 @@
* Free Software Foundation version 2 of the License.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

View File

@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.am.inc
SUBDIRS = \
lib
@ -5,11 +7,6 @@ udevhomedir = $(udev_prefix)/lib/udev
udevhome_PROGRAMS = \
vol_id
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
vol_id_SOURCES = \
vol_id.c \
../../udev/lib/libudev.h \

View File

@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.am.inc
SUBDIRS = \
lib
@ -8,11 +10,6 @@ sbin_PROGRAMS = \
noinst_PROGRAMS = \
test-udev
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
common_ldadd =
common_files = \

View File

@ -1,7 +1,4 @@
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
-D_LIBUDEV_COMPILATION
include $(top_srcdir)/Makefile.am.inc
noinst_PROGRAMS = \
test-libudev

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -20,8 +20,6 @@
#ifndef _LIBUDEV_PRIVATE_H_
#define _LIBUDEV_PRIVATE_H_
#include "config.h"
#include <syslog.h>
#include "libudev.h"
#include "list.h"

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>

View File

@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>

View File

@ -19,8 +19,6 @@
#ifndef _UDEV_H_
#define _UDEV_H_
#include "config.h"
#include <sys/types.h>
#include <sys/param.h>

View File

@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>

View File

@ -12,8 +12,6 @@
* GNU General Public License for more details.
*/
#include "config.h"
#include <time.h>
#include <errno.h>
#include <stdio.h>

View File

@ -15,8 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

View File

@ -15,8 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stddef.h>
#include <signal.h>
#include <unistd.h>