From 1926211300280e94560a52a62d2fe0459cd4a571 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Thu, 23 Aug 2012 01:05:40 -0400 Subject: simplify build rule for fcgiwrap Add flags and libraries to the respective environment vars and let make figure out the order on its own. This provides support for unmentioned vars such as LDFLAGS implicitly, as the compilation rule isn't explicitly defined. --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 647d98b..40ccf5d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -15,8 +15,10 @@ ifneq ("@systemdsystemunitdir@", "") install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@ endif +LDLIBS = -lfcgi @systemd_LIBS@ +CFLAGS = @AM_CFLAGS@ + fcgiwrap: fcgiwrap.c - @CC@ @AM_CFLAGS@ fcgiwrap.c -o fcgiwrap -lfcgi @systemd_LIBS@ @LDFLAGS@ #>+ 21 clean: -- cgit v1.2.3 From 7c5d088f61db48ad405e2f59a5cebec6658c66f4 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Sat, 8 Sep 2012 12:38:05 -0400 Subject: Makefile.in: define dummy datarootdir variable This suppresses a warning on ./configure for a directory which fcgiwrap does not use: config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting --- Makefile.in | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 40ccf5d..97378e5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,6 @@ targetdir = $(DESTDIR)@prefix@@sbindir@ man8dir = $(DESTDIR)@prefix@@mandir@/man8 +datarootdir = .PHONY: clean distclean -- cgit v1.2.3