1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Unbreak parallel builds by fixing targets' dependencies

- Cleanup port's Makefile slightly while I am here
This commit is contained in:
Alexey Dokuchaev 2013-08-09 02:11:20 +00:00
parent 2070f30547
commit b8851b154c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324414
2 changed files with 23 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# Created by: kris@FreeBSD.org
# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
PORTNAME= dsniff
@ -21,11 +21,8 @@ USES= pkgconfig
WANT_GNOME= yes
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT= X11
.include <bsd.port.options.mk>
MAN8= arpspoof.8 ${PORTNAME}.8 macof.8 mailsnarf.8 tcpkill.8 \
tcpnice.8 urlsnarf.8 filesnarf.8 dnsspoof.8 msgsnarf.8 \
sshmitm.8 webmitm.8
@ -38,7 +35,7 @@ LIBNET_INC= "`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"
LIBNET_LIB= "-L${LOCALBASE}/include/libnet${LIBNET_VERSION} \
${LOCALBASE}/lib/libnet${LIBNET_VERSION}/libnet.a"
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
# If net/libnids has been compiled with the GLIB2 option then this port needs
# the corresponding library and additional linker flags.
@ -74,4 +71,4 @@ pre-configure:
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -21,7 +21,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -76,7 +75,7 @@
@@ -76,22 +75,23 @@
.c.o:
$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c
@ -29,22 +29,33 @@
+all: $(PROGS)
mount.c: mount.x
rpcgen -h mount.x -o mount.h
@@ -86,13 +85,6 @@
rpcgen -h nfs_prot.x -o nfs_prot.h
rpcgen -c nfs_prot.x -o nfs_prot.c
- rpcgen -h mount.x -o mount.h
- rpcgen -c mount.x -o mount.c
+ rpcgen -c mount.x -o $@
+
+mount.h: mount.x
+ rpcgen -h mount.x -o $@
+
+decode_mountd.c: mount.h
nfs_prot.c: nfs_prot.x
- rpcgen -h nfs_prot.x -o nfs_prot.h
- rpcgen -c nfs_prot.x -o nfs_prot.c
+ rpcgen -c nfs_prot.x -o $@
-$(LIBOBJS):
- $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/missing/$*.c
-
+nfs_prot.h: nfs_prot.x
+ rpcgen -h nfs_prot.x -o $@
-libmissing.a: $(LIBOBJS)
- ar -cr $@ $(LIBOBJS)
- $(RANLIB) $@
-
+filesnarf.c: nfs_prot.h
dsniff: $(HDRS) $(SRCS) $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
@@ -153,7 +145,7 @@
@@ -153,7 +153,7 @@
done
clean: