]> git.wh0rd.org - patches.git/blame - uclinux-ntp-makefile.patch
more random patches. who knows.
[patches.git] / uclinux-ntp-makefile.patch
CommitLineData
5e993f12 1Index: user/ntp/makefile
2===================================================================
3RCS file: /var/cvs/uClinux-dist/user/ntp/makefile,v
4retrieving revision 1.1.1.3
5diff -u -p -r1.1.1.3 makefile
6--- user/ntp/makefile 12 Sep 2006 05:38:10 -0000 1.1.1.3
7+++ user/ntp/makefile 27 Jan 2007 03:21:16 -0000
8@@ -39,7 +39,7 @@ CONFOPTIONS= \
9 --$(NTPDC)-ntpdc --$(NTPQ)-ntpq
10
11
12-all: builddir
13+all: builddir/Makefile
14 $(MAKE) -C builddir CFLAGS='$(CFLAGS) -DCONFIG_FILE=\"/etc/config/ntp.conf\"'
15
16 romfs:
17@@ -48,18 +48,18 @@ romfs:
18 $(ROMFSINST) -e CONFIG_USER_NTPD_NTPDC builddir/ntpdc/ntpdc /bin/ntpdc
19 $(ROMFSINST) -e CONFIG_USER_NTPD_NTPQ builddir/ntpq/ntpq /bin/ntpq
20
21-
22-builddir: makefile
23+builddir/Makefile: makefile
24+ find . -type f -print0 | xargs -0 touch -r configure
25 rm -rf builddir
26 mkdir builddir
27- ( \
28- cd builddir; \
29- CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" \
30- MISSING="true" \
31- ../configure --prefix= \
32- --with-headers=$(ROOTDIR)/$(LINUXDIR)/include \
33- $(CONFIGURE_OPTS) $(CONFOPTIONS) \
34- )
35+ cd builddir && \
36+ CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" \
37+ MISSING="true" \
38+ ../configure --prefix= \
39+ --with-headers=$(ROOTDIR)/$(LINUXDIR)/include \
40+ $(CONFIGURE_OPTS) $(CONFOPTIONS)
41
42 clean:
43 rm -rf builddir
44+
45+.PHONY: all clean romfs