mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user