ports/misc/upclient/files/patch-aa
James E. Housley 9efa8d4a6c Major update from 3.04 to 4.2.1.19
PR:		23948
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-01-05 03:37:07 +00:00

29 lines
668 B
Text

--- src/Makefile.orig Mon Dec 18 14:44:48 2000
+++ src/Makefile Sat Dec 30 02:44:49 2000
@@ -8,7 +8,7 @@
####
# Location of config file (for example /etc/upclient.conf)
#
-CONFIGFILE = upclient.conf
+CONFIGFILE = $(PREFIX)/etc/upclient.conf
####
@@ -41,7 +41,7 @@
bsd:
$(MAKE) CC=gcc \
- LDFLAGS= \
+ LDFLAGS="-lkvm" \
OBJECTS='stats-bsd.c $(STDOPTS)' \
CFLAGS='-DPLATFORM_BSD -DCONFIGFILE=\"$(CONFIGFILE)\"' \
upclient
@@ -88,7 +88,7 @@
CFLAGS='-DPLATFORM_WINNT -DCONFIGFILE=\"$(CONFIGFILE)\"' \
upclient
-upclient: upclient.h
+upclient: upclient.h $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) upclient.c -o $(BINNAME)
clean: