$NetBSD: patch-aa,v 1.1.1.1 2000/06/15 14:04:47 rh Exp $ --- Makefile.orig Sun May 14 23:17:35 2000 +++ Makefile Thu Jun 15 15:54:24 2000 @@ -1,4 +1,3 @@ -CC = gcc TARGET = malsync PLAT := $(shell uname) @@ -12,9 +11,9 @@ endif TREETOP = ../../.. -PILOT_LINK_DIR = $(TREETOP)/vendor/pilot/pilot-link.0.9.3 +PILOT_LINK_DIR = ${PREFIX} -CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \ +CFLAGS+=-DMALSYNC -D__unix__ -I$(TREETOP)/mal/common \ -I$(TREETOP)/mal/client/common -I$(PILOT_LINK_DIR)/include -I. @@ -55,10 +54,12 @@ OBJS = $(SRC:.c=.o) +all: ${TARGET} + $(TARGET): $(OBJS) $(CC) -rdynamic $(CFLAGS) -o $@ $(OBJS) \ - -L${PILOT_LINK_DIR}/libsock -lpisock $(LINKLIBS) + -L${PILOT_LINK_DIR}/lib -Wl,-R${PILOT_LINK_DIR}/lib -lpisock $(LINKLIBS) clean: rm -f $(OBJS) $(TARGET)