$NetBSD: patch-aa,v 1.2 2001/06/27 18:07:55 jlam Exp $ --- Makefile.orig Sun May 14 17:17:35 2000 +++ Makefile @@ -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 = ${BUILDLINK_DIR} -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) + $(CC) -rdynamic $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) \ + -L${PILOT_LINK_DIR}/lib -lpisock $(LINKLIBS) clean: rm -f $(OBJS) $(TARGET)