- add libpidutil
dependency as submodule
- Cleanup Makefile
This commit is contained in:
parent
837abdafe6
commit
91f68407db
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "libpidutil"]
|
||||||
|
path = libpidutil
|
||||||
|
url = https://github.com/farrokhi/libpidutil.git
|
26
Makefile
26
Makefile
@ -1,14 +1,22 @@
|
|||||||
PREFIX?=/usr/local
|
|
||||||
INC=-I$(PREFIX)/include
|
|
||||||
LIB=-L$(PREFIX)/lib -lpidutil
|
|
||||||
FLAGS=-Wall -Wextra -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing -mssse3
|
|
||||||
CC?=cc
|
CC?=cc
|
||||||
|
PREFIX?=/usr/local
|
||||||
|
CPPFLAGS=-I$(PREFIX)/include
|
||||||
|
LDFLAGS=-L$(PREFIX)/lib
|
||||||
|
LDLIBS=-lpidutil
|
||||||
|
FLAGS=-Wall -Wextra -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing -mssse3
|
||||||
|
|
||||||
all: ifstatd_
|
.PHONY: libpidutil get-deps
|
||||||
|
|
||||||
ifstatd_: ifstatd.c Makefile
|
all: get-deps libpidutil ifstatd_
|
||||||
$(CC) $(FLAGS) $(INC) $(LIB) ifstatd.c -o ifstatd_
|
|
||||||
|
ifstatd_: ifstatd.o
|
||||||
|
|
||||||
|
get-deps:
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
libpidutil:
|
||||||
|
$(MAKE) -C libpidutil all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ifstatd_
|
rm -f *.BAK *.log *.o *.a core ifstatd_
|
||||||
|
$(MAKE) -C libpidutil clean
|
||||||
|
1
libpidutil
Submodule
1
libpidutil
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 6c886a4584028724e80d8e5010126916114275aa
|
Loading…
x
Reference in New Issue
Block a user