Files
2013-09-26 17:14:40 +02:00

43 lines
1011 B
Plaintext

$NetBSD: patch-aa,v 1.5 2012/02/16 17:25:16 hans 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 \
@@ -59,10 +60,6 @@ SRC = malsync.c \
$(TREETOP)/mal/client/common/AGSyncProcessor.c \
$(TREETOP)/mal/common/AGServerConfig.c
-ifeq ($(PLAT),SunOS)
-SRC += ap_snprintf.c
-endif
-
OBJS = $(SRC:.c=.o)
ifeq ($(PLAT),Darwin)
@@ -72,8 +69,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)