Re-generated the Makefiles
This commit is contained in:
parent
1e1dc6a1ae
commit
eac6961b34
26
doc/Makefile
26
doc/Makefile
|
@ -1,5 +1,5 @@
|
|||
SUBDIRS = scripts
|
||||
TARGETS = configure.1 configure.html project.conf.5 project.conf.html
|
||||
TARGETS = $(OBJDIR)configure.1 $(OBJDIR)configure.html $(OBJDIR)project.conf.5 $(OBJDIR)project.conf.html
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
RM = rm -f
|
||||
|
@ -13,17 +13,17 @@ all: subdirs $(TARGETS)
|
|||
subdirs:
|
||||
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE)) || exit; done
|
||||
|
||||
configure.1: configure.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "configure.1"
|
||||
$(OBJDIR)configure.1: configure.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)configure.1"
|
||||
|
||||
configure.html: configure.css.xml configure.xml manual.css.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "configure.html"
|
||||
$(OBJDIR)configure.html: configure.css.xml configure.xml manual.css.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)configure.html"
|
||||
|
||||
project.conf.5: project.conf.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "project.conf.5"
|
||||
$(OBJDIR)project.conf.5: project.conf.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)project.conf.5"
|
||||
|
||||
project.conf.html: project.conf.css.xml project.conf.xml manual.css.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "project.conf.html"
|
||||
$(OBJDIR)project.conf.html: project.conf.css.xml project.conf.xml manual.css.xml
|
||||
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)project.conf.html"
|
||||
|
||||
clean:
|
||||
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) clean) || exit; done
|
||||
|
@ -44,10 +44,10 @@ distclean:
|
|||
|
||||
install: $(TARGETS)
|
||||
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) install) || exit; done
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "configure.1"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "configure.html"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "project.conf.5"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "project.conf.html"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)configure.1"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)configure.html"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)project.conf.5"
|
||||
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)project.conf.html"
|
||||
|
||||
uninstall:
|
||||
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) uninstall) || exit; done
|
||||
|
|
42
src/Makefile
42
src/Makefile
|
@ -1,4 +1,4 @@
|
|||
TARGETS = configure makedepend makefile.o
|
||||
TARGETS = $(OBJDIR)configure $(OBJDIR)makedepend $(OBJDIR)makefile.o
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
@ -18,37 +18,37 @@ INSTALL = install
|
|||
|
||||
all: $(TARGETS)
|
||||
|
||||
configure_OBJS = configure.o settings.o main.o
|
||||
configure_OBJS = $(OBJDIR)configure.o $(OBJDIR)settings.o $(OBJDIR)main.o
|
||||
configure_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
configure_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) makefile.o
|
||||
configure_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) $(OBJDIR)makefile.o
|
||||
|
||||
configure: $(configure_OBJS) makefile.o
|
||||
$(CC) -o configure $(configure_OBJS) $(configure_LDFLAGS)
|
||||
$(OBJDIR)configure: $(configure_OBJS) $(OBJDIR)makefile.o
|
||||
$(CC) -o $(OBJDIR)configure $(configure_OBJS) $(configure_LDFLAGS)
|
||||
|
||||
makedepend_OBJS = makedepend.o
|
||||
makedepend_OBJS = $(OBJDIR)makedepend.o
|
||||
makedepend_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
makedepend_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
makedepend: $(makedepend_OBJS)
|
||||
$(CC) -o makedepend $(makedepend_OBJS) $(makedepend_LDFLAGS)
|
||||
$(OBJDIR)makedepend: $(makedepend_OBJS)
|
||||
$(CC) -o $(OBJDIR)makedepend $(makedepend_OBJS) $(makedepend_LDFLAGS)
|
||||
|
||||
makefile.o_OBJS = makefile.o
|
||||
makefile.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) -o makefile.o
|
||||
makefile.o_OBJS = $(OBJDIR)makefile.o
|
||||
makefile.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) -o $(OBJDIR)makefile.o
|
||||
|
||||
configure.o: configure.c configure.h makefile.h ../config.h
|
||||
$(CC) $(configure_CFLAGS) -c configure.c
|
||||
$(OBJDIR)configure.o: configure.c configure.h makefile.h ../config.h
|
||||
$(CC) $(configure_CFLAGS) -o $(OBJDIR)configure.o -c configure.c
|
||||
|
||||
settings.o: settings.c settings.h
|
||||
$(CC) $(configure_CFLAGS) -c settings.c
|
||||
$(OBJDIR)settings.o: settings.c settings.h
|
||||
$(CC) $(configure_CFLAGS) -o $(OBJDIR)settings.o -c settings.c
|
||||
|
||||
main.o: main.c configure.h
|
||||
$(CC) $(configure_CFLAGS) -c main.c
|
||||
$(OBJDIR)main.o: main.c configure.h
|
||||
$(CC) $(configure_CFLAGS) -o $(OBJDIR)main.o -c main.c
|
||||
|
||||
makedepend.o: makedepend.c
|
||||
$(CC) $(makedepend_CFLAGS) -c makedepend.c
|
||||
$(OBJDIR)makedepend.o: makedepend.c
|
||||
$(CC) $(makedepend_CFLAGS) -o $(OBJDIR)makedepend.o -c makedepend.c
|
||||
|
||||
makefile.o: makefile.c configure.h settings.h ../config.h
|
||||
$(CC) $(makefile.o_CFLAGS) -c makefile.c
|
||||
$(OBJDIR)makefile.o: makefile.c configure.h settings.h ../config.h
|
||||
$(CC) $(makefile.o_CFLAGS) -o $(OBJDIR)makefile.o -c makefile.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(configure_OBJS) $(makedepend_OBJS) $(makefile.o_OBJS)
|
||||
|
@ -58,7 +58,7 @@ distclean: clean
|
|||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(BINDIR)
|
||||
$(INSTALL) -m 0755 configure $(DESTDIR)$(BINDIR)/configure
|
||||
$(INSTALL) -m 0755 $(OBJDIR)configure $(DESTDIR)$(BINDIR)/configure
|
||||
|
||||
uninstall:
|
||||
$(RM) -- $(DESTDIR)$(BINDIR)/configure
|
||||
|
|
|
@ -9,9 +9,9 @@ dist=Makefile,configure.h,makefile.h,settings.h
|
|||
|
||||
[configure]
|
||||
type=binary
|
||||
depends=makefile.o
|
||||
depends=$(OBJDIR)makefile.o
|
||||
sources=configure.c,settings.c,main.c
|
||||
ldflags=makefile.o
|
||||
ldflags=$(OBJDIR)makefile.o
|
||||
install=$(BINDIR)
|
||||
|
||||
[configure.c]
|
||||
|
@ -29,7 +29,7 @@ sources=makedepend.c
|
|||
|
||||
[makefile.o]
|
||||
type=object
|
||||
cflags=-o makefile.o
|
||||
cflags=-o $(OBJDIR)makefile.o
|
||||
sources=makefile.c
|
||||
|
||||
[makefile.c]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
TARGETS = pkg-config
|
||||
TARGETS = $(OBJDIR)pkg-config
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
@ -16,15 +16,15 @@ INSTALL = install
|
|||
|
||||
all: $(TARGETS)
|
||||
|
||||
pkg-config_OBJS = pkg-config.o
|
||||
pkg-config_OBJS = $(OBJDIR)pkg-config.o
|
||||
pkg-config_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
pkg-config_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
pkg-config: $(pkg-config_OBJS)
|
||||
$(CC) -o pkg-config $(pkg-config_OBJS) $(pkg-config_LDFLAGS)
|
||||
$(OBJDIR)pkg-config: $(pkg-config_OBJS)
|
||||
$(CC) -o $(OBJDIR)pkg-config $(pkg-config_OBJS) $(pkg-config_LDFLAGS)
|
||||
|
||||
pkg-config.o: pkg-config.c ../config.h
|
||||
$(CC) -D PREFIX=\"$(PREFIX)\" $(pkg-config_CFLAGS) -c pkg-config.c
|
||||
$(OBJDIR)pkg-config.o: pkg-config.c ../config.h
|
||||
$(CC) -D PREFIX=\"$(PREFIX)\" $(pkg-config_CFLAGS) -o $(OBJDIR)pkg-config.o -c pkg-config.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(pkg-config_OBJS)
|
||||
|
|
Loading…
Reference in New Issue
Block a user