blob: 446af0627d176a8f1b7f3e83a24a5effc5c91913 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001TARGET := keepalive
2SOURCES := keepalive.c
3OBJECTS := $(SOURCES:.c=.o)
4
5GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
6
7.PHONY: all clean install
8
9all: $(TARGET)
10
11$(TARGET): $(OBJECTS)
12 $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
13
14clean:
15 $(RM) $(OBJECTS) $(TARGET)
16
17install: $(TARGET)
18 install -d $(DESTDIR)$(PREFIX)/bin/
19 install -d $(DESTDIR)$(PREFIX)/lib/
20 install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig/
21 install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/