--- Makefile	Sat May 31 01:42:14 2003
+++ /home/stell/Makefile	Mon Dec 19 16:14:45 2005
@@ -15,9 +15,9 @@
 endif
 
 TREETOP = .
-PILOT_LINK_DIR = $(TREETOP)/pilot-link-0.11.7
+PILOT_LINK_DIR = $(PREFIX)
 
-CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \
+CFLAGS += -DMALSYNC -I$(TREETOP)/mal/common \
   -I$(TREETOP)/mal/client/common -I$(PILOT_LINK_DIR)/include \
   -I$(TREETOP)/mal/client/unix
 
@@ -71,13 +71,10 @@
 DYNLINK = -rdynamic
 endif
 
+all: $(TARGET)
 $(TARGET): $(OBJS)
-	$(CC) $(DYNLINK) $(CFLAGS) -o $@ $(OBJS) \
-          ${PILOT_LINK_DIR}/libpisock/.libs/libpisock.a $(LINKLIBS)
+	$(CC) $(CFLAGS) -o $@ $(OBJS) \
+	-L${PILOT_LINK_DIR}/lib -lpisock $(LINKLIBS)
+	
 clean:
 	rm -f $(OBJS) $(TARGET)
-
-
-
-
-
