Simplify makefile rule

Instead of writing out the .c -> .o rule, use the default one, so that
dependency tracking can be used.
This commit is contained in:
Peter Eisentraut 2012-04-29 20:59:12 +03:00
parent aebe989477
commit 2227bb9c94

View File

@ -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