pkgsrc/comms/malsync/patches/patch-aa
2007-01-26 01:50:54 +00:00

31 lines
779 B
Text

$NetBSD: patch-aa,v 1.4 2007/01/26 01:50:54 markd Exp $
--- Makefile.orig 2003-05-31 11:42:14.000000000 +1200
+++ Makefile
@@ -1,5 +1,7 @@
TARGET = malsync
+all: ${TARGET}
+
PLAT := $(shell uname)
ifeq ($(PLAT),SunOS)
@@ -15,7 +17,6 @@ LINKLIBS = -lm
endif
TREETOP = .
-PILOT_LINK_DIR = $(TREETOP)/pilot-link-0.11.7
CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \
-I$(TREETOP)/mal/client/common -I$(PILOT_LINK_DIR)/include \
@@ -72,8 +73,8 @@ DYNLINK = -rdynamic
endif
$(TARGET): $(OBJS)
- $(CC) $(DYNLINK) $(CFLAGS) -o $@ $(OBJS) \
- ${PILOT_LINK_DIR}/libpisock/.libs/libpisock.a $(LINKLIBS)
+ $(CC) $(DYNLINK) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) \
+ -L${PILOT_LINK_DIR}/lib -lpisock $(LINKLIBS)
clean:
rm -f $(OBJS) $(TARGET)