From 2ef07cf48c1e71b5ff5d45db25ea2586b5592762 Mon Sep 17 00:00:00 2001 From: William Smith Date: Sat, 12 Jan 2013 13:55:09 -0500 Subject: [PATCH] mark phony targets in makefiles --- Makefile | 6 ++++++ library/Makefile | 8 ++++++++ programs/Makefile | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index cc4e0a3..84c0d6a 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,14 @@ DESTDIR=/usr/local PREFIX=tropicssl_ +.PHONY: all + all: make -C library all make -C programs all +.PHONY: install + install: mkdir -p $(DESTDIR)/include/tropicssl cp -r include/tropicssl $(DESTDIR)/include @@ -22,6 +26,8 @@ install: fi \ done +.PHONY: clean + clean: make -C library clean make -C programs clean diff --git a/library/Makefile b/library/Makefile index 7b54754..ec75456 100644 --- a/library/Makefile +++ b/library/Makefile @@ -27,10 +27,16 @@ OBJS= aes.o arc4.o base64.o \ timing.o x509parse.o xtea.o \ camellia.o +.PHONY: all + all: static +.PHONY: static + static: libtropicssl.a +.PHONY: shared + shared: libtropicssl.$(DLEXT) libtropicssl.a: $(OBJS) @@ -51,6 +57,8 @@ libtropicssl.dylib: libtropicssl.a @echo " CC $<" $(CC) $(CFLAGS) $(OFLAGS) -c $< +.PHONY: clean + clean: rm -f *.o libtropicssl.* diff --git a/programs/Makefile b/programs/Makefile index 24eb976..4d08622 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -16,6 +16,8 @@ APPS = aes/aescrypt2 hash/hello \ ssl/ssl_server test/benchmark \ test/selftest test/ssl_test +.PHONY: all + all: $(APPS) aes/aescrypt2: aes/aescrypt2.c ../library/libtropicssl.a @@ -90,6 +92,8 @@ test/ssl_test: test/ssl_test.c ../library/libtropicssl.a @echo " CC test/ssl_test.c" $(CC) $(CFLAGS) $(OFLAGS) test/ssl_test.c $(LDFLAGS) -o $@ +.PHONY: clean + clean: rm -f $(APPS) -- 2.11.4.GIT