- improve Makefile
This commit is contained in:
parent
888d5552db
commit
c7002193bc
7
Makefile
7
Makefile
@ -7,14 +7,19 @@ AR?=ar
|
|||||||
RANLIB?=ranlib
|
RANLIB?=ranlib
|
||||||
|
|
||||||
LIBPIDUTIL = libpidutil.a
|
LIBPIDUTIL = libpidutil.a
|
||||||
|
HEADERS = pidutil.h
|
||||||
OBJS = pidutil.o
|
OBJS = pidutil.o
|
||||||
|
|
||||||
all: $(LIBPIDUTIL) $(PROGS)
|
all: $(LIBPIDUTIL)
|
||||||
|
|
||||||
$(LIBPIDUTIL) : $(OBJS)
|
$(LIBPIDUTIL) : $(OBJS)
|
||||||
$(AR) rv $(LIBPIDUTIL) $?
|
$(AR) rv $(LIBPIDUTIL) $?
|
||||||
$(RANLIB) $(LIBPIDUTIL)
|
$(RANLIB) $(LIBPIDUTIL)
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -C $(LIBPIDUTIL) $(PREFIX)/lib
|
||||||
|
install -C $(HEADERS) $(PREFIX)/include
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.a a.out core temp.* $(LIBPIDUTIL)
|
rm -f *.o *.a a.out core temp.* $(LIBPIDUTIL)
|
||||||
rm -fr *.dSYM
|
rm -fr *.dSYM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user