1998-09-27 03:15:35 +00:00
|
|
|
--- Makefile.in.orig Thu May 22 21:18:22 1997
|
|
|
|
+++ Makefile.in Sat Sep 26 21:59:37 1998
|
|
|
|
@@ -13,6 +13,16 @@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
LIBS = @LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lXmu -lXaw -lXt -lX11 @X_EXTRA_LIBS@
|
|
|
|
+.if $(PORTOBJFORMAT) == "elf"
|
|
|
|
+LIBS+= -Wl,-rpath,$(X11BASE)/lib
|
|
|
|
+SHLDFLAGS= -shared -x -soname $@
|
|
|
|
+DNDLIB= libDnd.so.1
|
|
|
|
+DNDPLUSLIB= libDnd++.so.1
|
|
|
|
+.else
|
|
|
|
+SHLDFLAGS= -Bshareable -x
|
|
|
|
+DNDLIB= libDnd.so.1.0
|
|
|
|
+DNDPLUSLIB= libDnd++.so.1.0
|
|
|
|
+.endif
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
@@ -23,20 +33,30 @@
|
1997-11-19 12:18:07 +00:00
|
|
|
CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) -c
|
|
|
|
LINK = $(CC) $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
+SOCOMPILE= $(COMPILE) -fpic
|
|
|
|
+SOCXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) -c -fpic
|
|
|
|
+
|
|
|
|
default: all
|
|
|
|
|
|
|
|
-all: libC libCpp dndtest
|
|
|
|
+all: libC libCpp dndtest libC-so libCpp-so
|
|
|
|
|
|
|
|
install: libCpp libC
|
|
|
|
install -d $(INC_DIR)
|
|
|
|
- install DragAndDrop.h DragAndDropTypes.h $(INC_DIR)
|
|
|
|
+ install -c -m 644 DragAndDrop.h DragAndDropTypes.h $(INC_DIR)
|
|
|
|
install -d $(LIB_DIR)
|
|
|
|
- install libDnd.a libDnd++.a $(LIB_DIR)
|
|
|
|
+ install -c -m 644 libDnd.a libDnd++.a $(LIB_DIR)
|
1998-09-27 03:15:35 +00:00
|
|
|
+ install -c $(DNDLIB) $(DNDPLUSLIB) $(LIB_DIR)
|
|
|
|
+ ln -sf $(DNDLIB) $(LIB_DIR)/libDnd.so
|
|
|
|
+ ln -sf $(DNDPLUSLIB) $(LIB_DIR)/libDnd++.so
|
1997-11-19 12:18:07 +00:00
|
|
|
|
|
|
|
libC: libDnd.a
|
|
|
|
|
|
|
|
libCpp: libDnd++.a
|
|
|
|
|
1998-09-27 03:15:35 +00:00
|
|
|
+libC-so: $(DNDLIB)
|
1997-11-19 12:18:07 +00:00
|
|
|
+
|
1998-09-27 03:15:35 +00:00
|
|
|
+libCpp-so: $(DNDPLUSLIB)
|
1997-11-19 12:18:07 +00:00
|
|
|
+
|
|
|
|
dndtest: dndtest.c libDnd.a
|
|
|
|
rm -f dndtest
|
|
|
|
$(COMPILE) dndtest.c
|
1998-09-27 03:15:35 +00:00
|
|
|
@@ -57,6 +77,16 @@
|
1997-11-19 12:18:07 +00:00
|
|
|
$(AR) cru libDnd++.a DragAndDrop.o
|
|
|
|
$(RANLIB) libDnd++.a
|
|
|
|
|
|
|
|
-clean:
|
|
|
|
- rm -f *.o *.cxx *.a dndtest *~ *bak
|
1998-09-27 03:15:35 +00:00
|
|
|
+$(DNDLIB): DragAndDrop.c
|
1997-11-19 12:18:07 +00:00
|
|
|
+ rm -f DragAndDrop.so
|
|
|
|
+ $(SOCOMPILE) -o DragAndDrop.so DragAndDrop.c
|
1998-09-27 03:15:35 +00:00
|
|
|
+ $(LD) $(SHLDFLAGS) -o $(DNDLIB) DragAndDrop.so
|
1997-11-19 12:18:07 +00:00
|
|
|
|
1998-09-27 03:15:35 +00:00
|
|
|
+$(DNDPLUSLIB): DragAndDrop.c
|
1997-11-19 12:18:07 +00:00
|
|
|
+ rm -f DragAndDrop.so DragAndDrop.cxx
|
|
|
|
+ ln -s DragAndDrop.c DragAndDrop.cxx
|
|
|
|
+ $(SOCXXCOMPILE) -o DragAndDrop.so DragAndDrop.cxx
|
1998-09-27 03:15:35 +00:00
|
|
|
+ $(LD) $(SHLDFLAGS) -o $(DNDPLUSLIB) DragAndDrop.so
|
1997-11-19 12:18:07 +00:00
|
|
|
+
|
|
|
|
+clean:
|
|
|
|
+ rm -f *.o *.so *.cxx *.a dndtest *~ *bak
|