Makefile.in: Fixed srcdir/; and CC with spaces

This commit is contained in:
Gerhard Rieger 2024-06-21 14:13:24 +02:00
parent efc654f85a
commit 64dc8b2941
2 changed files with 11 additions and 2 deletions

View file

@ -11,6 +11,15 @@ Porting:
When NETDB_INTERNAL is not available it should be set to -1.
Thanks to Baruch Siach for sending a patch.
Building:
Makefile.in: procan.o build requires srcdir prefix for explicit source
file.
Thanks to Hongxu Jia and Andrew Schoolman for providing patches.
Makefile.in: the CC define for procan.o build failed when CC had more
than one word.
Thanks to Hongxu Jia for providing an inital patch.
Testing:
test.sh: lots of corrections and improvements

View file

@ -109,8 +109,8 @@ depend: $(CFILES) $(HFILES)
socat: socat.o libxio.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
procan.o: procan.c
$(CC) $(CFLAGS) -c -D CC=\"$(CC)\" -o $@ procan.c
procan.o: $(srcdir)/procan.c
$(CC) $(CFLAGS) -c -D CC="\"$(CC)\"" -o $@ $(srcdir)/procan.c
PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o vsnprintf_r.o snprinterr.o
procan: $(PROCAN_OBJS)