Diff

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
line wrap: on
line diff
--- a/util-src/Makefile	Thu Oct 13 00:24:09 2011 +0500
+++ b/util-src/Makefile	Thu Oct 13 00:51:50 2011 +0100
@@ -10,8 +10,19 @@
 CXX?=g++
 LD?=gcc
 
+.PHONY: all install clean
 .SUFFIXES: .c .o .so
 
+all: encodings.so hashes.so pposix.so signal.so
+
+install: encodings.so hashes.so pposix.so signal.so
+	install *.so ../util/
+
+clean:
+	rm -f *.o
+	rm -f *.so
+	rm -f ../util/*.so
+
 encodings.so: encodings.o
 	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
 	$(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS)
@@ -27,12 +38,3 @@
 	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
 	$(LD) -o $@ $< $(LDFLAGS)
 
-all: encodings.so hashes.so pposix.so signal.so
-
-install: encodings.so hashes.so pposix.so signal.so
-	install *.so ../util/
-
-clean:
-	rm -f *.o
-	rm -f *.so
-	rm -f ../util/*.so