mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:55:07 -05:00
test: get list of objects from main Makefile
Instead of linking unit tests with *.o in the root directory, which may include conflicting objects from a different configuration (e.g. hash), add a print target to the main Makefile and use it in the unit test Makefile to link only with objects that are relevant in the current configuration.
This commit is contained in:
@@ -118,6 +118,9 @@ check : chronyd chronyc
|
||||
$(MAKE) -C test/unit check
|
||||
cd test/simulation && ./run -i 20 -m 2
|
||||
|
||||
print-chronyd-objects :
|
||||
@echo $(OBJS) $(EXTRA_OBJS)
|
||||
|
||||
Makefile : Makefile.in configure
|
||||
@echo
|
||||
@echo Makefile needs to be regenerated, run ./configure
|
||||
|
||||
Reference in New Issue
Block a user