UBUNTU: SAUCE: rtla: fix deb build

BugLink: https://bugs.launchpad.net/bugs/2059080

We need to explicitly define build rules for C object files when
building the deb, otherwise we may get the following build failure:

 make[1]: *** No rule to make target 'src/osnoise.o', needed by 'static'.  Stop.

This doesn't seem to happen when building rtla manually, but we need
it when we build the deb package, so add the extra rule to make the
build more robust.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Andrea Righi
2024-04-02 16:47:56 +02:00
committed by Roxana Nicolescu
parent 51c8aee421
commit 888e7c48a1
+3
View File
@@ -111,6 +111,9 @@ warnings: $(WARNINGS)
$(ERROR_OUT)
endif
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
rtla: $(OBJ)
$(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS)