Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2227bb9

Browse files
committed
Simplify makefile rule
Instead of writing out the .c -> .o rule, use the default one, so that dependency tracking can be used.
1 parent aebe989 commit 2227bb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/port/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ libpgport.a: $(OBJS)
5353
$(AR) $(AROPT) $@ $^
5454

5555
# thread.o needs PTHREAD_CFLAGS (but thread_srv.o does not)
56-
thread.o: thread.c
57-
$(CC) $(CFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -c $<
56+
thread.o: CFLAGS+=$(PTHREAD_CFLAGS)
5857

5958
#
6059
# Server versions of object files

0 commit comments

Comments
 (0)