Comparison

util-src/Makefile @ 4396:03b59a511671

Makefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Oct 2011 00:51:50 +0100
parent 3964:1b81df4042c0
child 5537:15464633d8fb
comparison
equal deleted inserted replaced
4395:d322c4553f97 4396:03b59a511671
8 OPENSSL_LIB?=crypto 8 OPENSSL_LIB?=crypto
9 CC?=gcc 9 CC?=gcc
10 CXX?=g++ 10 CXX?=g++
11 LD?=gcc 11 LD?=gcc
12 12
13 .PHONY: all install clean
13 .SUFFIXES: .c .o .so 14 .SUFFIXES: .c .o .so
15
16 all: encodings.so hashes.so pposix.so signal.so
17
18 install: encodings.so hashes.so pposix.so signal.so
19 install *.so ../util/
20
21 clean:
22 rm -f *.o
23 rm -f *.so
24 rm -f ../util/*.so
14 25
15 encodings.so: encodings.o 26 encodings.so: encodings.o
16 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; 27 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
17 $(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS) 28 $(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS)
18 29
25 36
26 .o.so: 37 .o.so:
27 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; 38 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
28 $(LD) -o $@ $< $(LDFLAGS) 39 $(LD) -o $@ $< $(LDFLAGS)
29 40
30 all: encodings.so hashes.so pposix.so signal.so
31
32 install: encodings.so hashes.so pposix.so signal.so
33 install *.so ../util/
34
35 clean:
36 rm -f *.o
37 rm -f *.so
38 rm -f ../util/*.so