installer: Fix loads of compiler warnings
[ipfire-2.x.git] / src / installer / Makefile.am
1 # This file is part of the installer.
2 #
3 # installer is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
7
8 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
9 AM_MAKEFLAGS = --no-print-directory
10 AUTOMAKE_OPTIONS = color-tests parallel-tests
11
12 SUBDIRS = . po
13
14 # remove targets if the command fails
15 .DELETE_ON_ERROR:
16
17 # keep intermediate files
18 .SECONDARY:
19
20 CLEANFILES =
21 EXTRA_DIST =
22 dracutmoduledir = $(prefix)/lib/dracut/modules.d/99installer
23
24 AM_CPPFLAGS = \
25 -include $(top_builddir)/config.h \
26 -I $(top_srcdir)/include \
27 $(OUR_CPPFLAGS)
28
29 AM_CFLAGS = $(OUR_CFLAGS)
30 AM_LDFLAGS = $(OUR_LDFLAGS)
31
32 bin_PROGRAMS = \
33 installer
34
35 bin_SCRIPTS = \
36 downloadsource.sh \
37 start-networking.sh
38
39 #- installer -------------------------------------------------------------------
40
41 installer_SOURCES = \
42 hw.c \
43 hw.h \
44 main.c
45
46 installer_CFLAGS = \
47 $(AM_CFLAGS) \
48 $(BLKID_CFLAGS) \
49 $(LIBSMOOTH_CFLAGS) \
50 $(PCI_CFLAGS) \
51 $(UDEV_CFLAGS)
52
53 installer_LDADD = \
54 $(BLKID_LIBS) \
55 $(LIBSMOOTH_LIBS) \
56 $(NEWT_LIBS) \
57 $(PCI_LIBS) \
58 $(UDEV_LIBS)
59
60 dracutmodule_DATA = \
61 dracut-module/70-dhcpcd.exe \
62 dracut-module/fake-root.sh \
63 dracut-module/module-setup.sh \
64 dracut-module/run-installer.sh
65
66 #-------------------------------------------------------------------------------
67
68 substitutions = \
69 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
70 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
71 '|prefix=$(prefix)|' \
72 '|exec_prefix=$(exec_prefix)|' \
73 '|libdir=$(libdir)|' \
74 '|includedir=$(includedir)|'
75
76 SED_PROCESS = \
77 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
78 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) < $< > $@
79
80 %.pc: %.pc.in Makefile
81 $(SED_PROCESS)