Added target makedepend
This commit is contained in:
parent
738a85e5da
commit
4f4140b56f
14
src/Makefile
14
src/Makefile
@ -1,4 +1,4 @@
|
|||||||
TARGETS = configure
|
TARGETS = configure makedepend
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
@ -18,14 +18,22 @@ configure_CFLAGS = $(CFLAGSF) $(CFLAGS)
|
|||||||
configure: $(configure_OBJS)
|
configure: $(configure_OBJS)
|
||||||
$(CC) $(LDFLAGSF) $(LDFLAGS) -o configure $(configure_OBJS)
|
$(CC) $(LDFLAGSF) $(LDFLAGS) -o configure $(configure_OBJS)
|
||||||
|
|
||||||
|
makedepend_OBJS = makedepend.o
|
||||||
|
makedepend_CFLAGS = $(CFLAGSF) $(CFLAGS)
|
||||||
|
makedepend: $(makedepend_OBJS)
|
||||||
|
$(CC) $(LDFLAGSF) $(LDFLAGS) -o makedepend $(makedepend_OBJS)
|
||||||
|
|
||||||
configure.o: configure.c configure.h makefile.h
|
configure.o: configure.c configure.h makefile.h
|
||||||
$(CC) $(configure_CFLAGS) -c configure.c
|
$(CC) $(configure_CFLAGS) -c configure.c
|
||||||
|
|
||||||
makefile.o: makefile.c configure.h
|
makefile.o: makefile.c configure.h
|
||||||
$(CC) $(configure_CFLAGS) -c makefile.c
|
$(CC) $(configure_CFLAGS) -c makefile.c
|
||||||
|
|
||||||
|
makedepend.o: makedepend.c
|
||||||
|
$(CC) $(makedepend_CFLAGS) -c makedepend.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(configure_OBJS)
|
$(RM) $(configure_OBJS) $(makedepend_OBJS)
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) $(TARGETS)
|
$(RM) $(TARGETS)
|
||||||
@ -33,6 +41,8 @@ distclean: clean
|
|||||||
install: all
|
install: all
|
||||||
$(MKDIR) $(DESTDIR)$(BINDIR)
|
$(MKDIR) $(DESTDIR)$(BINDIR)
|
||||||
$(INSTALL) -m 0755 configure $(DESTDIR)$(BINDIR)/configure
|
$(INSTALL) -m 0755 configure $(DESTDIR)$(BINDIR)/configure
|
||||||
|
$(INSTALL) -m 0755 makedepend $(DESTDIR)$(BINDIR)/makedepend
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(DESTDIR)$(BINDIR)/configure
|
$(RM) $(DESTDIR)$(BINDIR)/configure
|
||||||
|
$(RM) $(DESTDIR)$(BINDIR)/makedepend
|
||||||
|
11
src/makedepend.c
Normal file
11
src/makedepend.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/* makedepend.c */
|
||||||
|
/* TODO:
|
||||||
|
* - parse C files (.c and .h) and update dependencies in project.conf */
|
||||||
|
|
||||||
|
|
||||||
|
/* main */
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
/* FIXME */
|
||||||
|
return 1;
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
targets=configure
|
targets=configure,makedepend
|
||||||
cflags_force=-W -Wall -ansi -I /System/Include
|
cflags_force=-W -Wall -ansi -I /System/Include
|
||||||
cflags=-g
|
cflags=-g
|
||||||
ldflags_force=-L /System/Libraries -l System -l dl
|
ldflags_force=-L /System/Libraries -l System -l dl
|
||||||
@ -12,3 +12,7 @@ depends=configure.h,makefile.h
|
|||||||
|
|
||||||
[makefile.c]
|
[makefile.c]
|
||||||
depends=configure.h
|
depends=configure.h
|
||||||
|
|
||||||
|
[makedepend]
|
||||||
|
type=binary
|
||||||
|
sources=makedepend.c
|
||||||
|
Loading…
Reference in New Issue
Block a user