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:
parent
aebe989477
commit
2227bb9c94
@ -53,8 +53,7 @@ libpgport.a: $(OBJS)
|
|||||||
$(AR) $(AROPT) $@ $^
|
$(AR) $(AROPT) $@ $^
|
||||||
|
|
||||||
# thread.o needs PTHREAD_CFLAGS (but thread_srv.o does not)
|
# thread.o needs PTHREAD_CFLAGS (but thread_srv.o does not)
|
||||||
thread.o: thread.c
|
thread.o: CFLAGS+=$(PTHREAD_CFLAGS)
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -c $<
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Server versions of object files
|
# Server versions of object files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user