Skip to content

Commit

Permalink
Added rules to install the library and its header file
Browse files Browse the repository at this point in the history
Change-Id: Ia439d4f92045be63f0969acb75327925b45cbbf1
  • Loading branch information
tkanteck committed Feb 15, 2016
1 parent 7d4bec7 commit db381ce
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# @par
# BSD LICENSE
#
# Copyright(c) 2014-2015 Intel Corporation. All rights reserved.
# Copyright(c) 2014-2016 Intel Corporation. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -68,13 +68,16 @@ endif

# Build targets and dependencies
APP = pqos

HDR = pqos.h
MAN = pqos.8
LIB = libpqos.a

# XXX: modify as desired
PREFIX ?= /usr/local
BIN_DIR = $(PREFIX)/bin
MAN_DIR = $(PREFIX)/man/man8
HDR_DIR = $(PREFIX)/include
LIB_DIR = $(PREFIX)/lib

OBJS = main.o monitor.o alloc.o profiles.o

Expand All @@ -86,13 +89,17 @@ $(APP): $(OBJS) $(LIBNAME)
$(LIBNAME):
make -C lib all

install: $(APP) $(MAN)
install: $(APP) $(MAN) lib/$(LIB) lib/$(HDR)
install -D -s $(APP) $(BIN_DIR)/$(APP)
install -m 0444 $(MAN) -D $(MAN_DIR)/$(MAN)
install -m 0644 lib/$(HDR) -D $(HDR_DIR)/$(HDR)
install -m 0644 lib/$(LIB) -D $(LIB_DIR)/$(LIB)

uninstall:
-rm $(BIN_DIR)/$(APP)
-rm $(MAN_DIR)/$(MAN)
-rm $(HDR_DIR)/$(HDR)
-rm $(LIB_DIR)/$(LIB)

.PHONY: clean rinse TAGS install uninstall

Expand Down

0 comments on commit db381ce

Please sign in to comment.