tools/console: have one Makefile per program/directory
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 11 Jul 2022 10:13:07 +0000 (12:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Jul 2022 10:13:07 +0000 (12:13 +0200)
commit524cf4da66ec95d7304a09b81853b250e669eeb3
tree245766671888ec12c1b1492d9405ceeb04b66de5
parent796dae0fe434cc34ebc7ad53fb54c07850899990
tools/console: have one Makefile per program/directory

Sources of both xenconsoled and xenconsole are already separated into
different directory and don't share anything in common. Having two
different Makefile means it's easier to deal with *FLAGS.

Some common changes:
Rename $(BIN) to $(TARGETS), this will be useful later.
Stop removing *.so *.rpm *.a as they aren't created here.
Use $(OBJS-y) to list objects.
Update $(CFLAGS) for the directory rather than a single object.

daemon:
    Remove the need for $(LDLIBS_xenconsoled), use $(LDLIBS) instead.
    Remove the need for $(CONSOLE_CFLAGS-y) and use $(CFLAGS-y)
instead.

client:
    Remove the unused $(LDLIBS_xenconsole)

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
.gitignore
tools/console/Makefile
tools/console/client/.gitignore [new file with mode: 0644]
tools/console/client/Makefile [new file with mode: 0644]
tools/console/daemon/.gitignore [new file with mode: 0644]
tools/console/daemon/Makefile [new file with mode: 0644]