Comparison

util-src/Makefile @ 6877:020ededc84a6

util-src/Makefile: Use variables for install binary and target directory
author Kim Alvefur <zash@zash.se>
date Sat, 26 Sep 2015 23:38:09 +0200
parent 6876:d1fc95d22f33
child 6878:53a74a80c91a
comparison
equal deleted inserted replaced
6876:d1fc95d22f33 6877:020ededc84a6
9 CC?=gcc 9 CC?=gcc
10 CXX?=g++ 10 CXX?=g++
11 LD?=gcc 11 LD?=gcc
12 CFLAGS+=-ggdb 12 CFLAGS+=-ggdb
13 13
14 INSTALL_DATA=install -m644
15 TARGET?=../util/
16
14 ALL=encodings.so hashes.so net.so pposix.so signal.so table.so 17 ALL=encodings.so hashes.so net.so pposix.so signal.so table.so
15 18
16 .PHONY: all install clean 19 .PHONY: all install clean
17 .SUFFIXES: .c .o .so 20 .SUFFIXES: .c .o .so
18 21
19 all: $(ALL) 22 all: $(ALL)
20 23
21 install: $(ALL) 24 install: $(ALL)
22 install $^ ../util/ 25 $(INSTALL_DATA) $^ $(TARGET)
23 26
24 clean: 27 clean:
25 rm -f $(ALL) 28 rm -f $(ALL)
26 29
27 encodings.so: encodings.o 30 encodings.so: encodings.o