ports/devel/domc/files/patch-Makefile
Ying-Chieh Liao 4a03fd9985 upgrade to 0.5.1
PR:		32215
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2001-11-23 17:36:44 +00:00

27 lines
900 B
Text

--- Makefile.orig Sat Oct 27 13:40:45 2001
+++ Makefile Thu Nov 22 03:34:09 2001
@@ -1,13 +1,13 @@
-INSTDIR = /usr/local
+INSTDIR = ${PREFIX}
OBJS = lib/expatls.o lib/events.o lib/node.o lib/dom.o lib/stack.o
LIBNAME = domc
-SONAME = lib$(LIBNAME).so.0.5.0
-SOVERSION = lib$(LIBNAME).so.0.5
+SONAME = lib$(LIBNAME).so.${SHLIB_MAJOR}
+SOVERSION = lib$(LIBNAME).so.${SHLIB_MAJOR}
all: lib$(LIBNAME).so
lib$(LIBNAME).so: $(OBJS)
- gcc -Wall -shared $(OBJS) -lc -Wl,-soname -Wl,$(SOVERSION) -o $(SONAME)
+ ${CC} ${CFLAGS} -shared $(OBJS) -Wl,-soname -Wl,$(SOVERSION) -o $(SONAME) -L${LOCALBASE}/lib -lexpat -Wl,-rpath ${LOCALBASE}/lib
example:
$(MAKE) -C examples
@@ -25,5 +25,5 @@
@echo "Expat was not removed however"
.c.o:
- gcc -Wall -Iinclude -Llib -fPIC -DPIC -c -o $*.o $<
+ ${CC} ${CFLAGS} -I${LOCALBASE}/include/xml -Iinclude -Llib -fPIC -DPIC -c -o $*.o $<