- Improve Makefile
- Indenting
This commit is contained in:
parent
6c886a4584
commit
ac8d14bc26
11
Makefile
11
Makefile
@ -5,15 +5,16 @@ LDFLAGS=-L$(PREFIX)/lib
|
||||
CFLAGS=-Wall -Wextra -g -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
|
||||
CFLAGS+=$(CPPFLAGS)
|
||||
RANLIB?=ranlib
|
||||
RM?=rm -f
|
||||
|
||||
LIBPIDUTIL = libpidutil.a
|
||||
HEADERS = pidutil.h
|
||||
OBJS = pidutil.o
|
||||
OBJECTS = pidutil.o
|
||||
|
||||
all: $(LIBPIDUTIL)
|
||||
|
||||
$(LIBPIDUTIL) : $(OBJS)
|
||||
$(AR) rv $(LIBPIDUTIL) $?
|
||||
$(LIBPIDUTIL) : $(OBJECTS)
|
||||
$(AR) $(ARFLAGS) $(LIBPIDUTIL) $?
|
||||
$(RANLIB) $(LIBPIDUTIL)
|
||||
|
||||
install: all
|
||||
@ -21,5 +22,5 @@ install: all
|
||||
install -C $(HEADERS) $(PREFIX)/include
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a a.out core temp.* $(LIBPIDUTIL)
|
||||
rm -fr *.dSYM
|
||||
$(RM) *.o *.a a.out core temp.* $(LIBPIDUTIL)
|
||||
$(RM) -r *.dSYM
|
||||
|
Loading…
x
Reference in New Issue
Block a user