Skip to content

Commit 1f583a4

Browse files
committed
Makefile.in: Update the .c.o build rule
Don't use the hacks for the rather old SunOS 4. It's helps to do VPATH builds, e.g. 32-bit, 64-bit in two directories. (https://www.gnu.org/software/automake/manual/html_node/VPATH-Builds.html)
1 parent a0ffbfb commit 1f583a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Makefile.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,8 @@ RANLIB = @RANLIB@
6464

6565
DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
6666

67-
# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
68-
# Also, gcc does not remove the .o before forking 'as', which can be a
69-
# problem if you don't own the file but can write to the directory.
7067
.c.o:
71-
@rm -f $@
72-
$(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
68+
$(CC) $(FULL_CFLAGS) -c -o $@ $<
7369

7470
CSRC = fptype.c tcpdump.c
7571

0 commit comments

Comments
 (0)