Updated the makefile and added dependencies.
This commit is contained in:
parent
618aeba69f
commit
5c3aa77dbb
1 changed files with 9 additions and 8 deletions
|
|
@ -16,10 +16,8 @@ OBJS = user.o
|
|||
|
||||
###############################################################
|
||||
|
||||
|
||||
|
||||
SUFFIXES=
|
||||
SUFFIXES= .cpp .d .o
|
||||
.SUFFIXES :
|
||||
.SUFFIXES : .cpp .d .o
|
||||
|
||||
OBJDIR = .
|
||||
PIC_FLAG=@PIC@
|
||||
|
|
@ -32,7 +30,7 @@ LIB = @buildlib@/libuser.a
|
|||
|
||||
DEPENDS = $(OBJS:.o=.d)
|
||||
|
||||
%.d:
|
||||
%.d: Makefile %.o
|
||||
@CXX_DEPENDS@ $(CXX_INCLUDES) $*.cpp > $*.d
|
||||
|
||||
.cpp.o:
|
||||
|
|
@ -49,13 +47,16 @@ $(LIB): $(OBJS)
|
|||
clean:
|
||||
$(RM) *.o *~ $(LIB)
|
||||
|
||||
depends: $(DEPENDS)
|
||||
depends:
|
||||
@MAKE@ .depends
|
||||
|
||||
.depends: $(DEPENDS)
|
||||
cat *.d > .depends
|
||||
$(RM) $(DEPENDS)
|
||||
|
||||
$(OBJS): Makefile
|
||||
|
||||
install:
|
||||
|
||||
|
||||
TAGS:
|
||||
etags *.h *.cpp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue