From 2227bb9c948d2dcc167d414630ed3bae7f31db83 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 29 Apr 2012 20:59:12 +0300 Subject: [PATCH] Simplify makefile rule Instead of writing out the .c -> .o rule, use the default one, so that dependency tracking can be used. --- src/port/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/port/Makefile b/src/port/Makefile index 4e3a8edd3a..0225b397a3 100644 --- a/src/port/Makefile +++ b/src/port/Makefile @@ -53,8 +53,7 @@ libpgport.a: $(OBJS) $(AR) $(AROPT) $@ $^ # thread.o needs PTHREAD_CFLAGS (but thread_srv.o does not) -thread.o: thread.c - $(CC) $(CFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -c $< +thread.o: CFLAGS+=$(PTHREAD_CFLAGS) # # Server versions of object files