openbsd-ports/x11/fleditor/patches/patch-Makefile_in
wilfried 900b07feb6 update to fleditor-0.4.3
*  Will reject attempts to LoadFrom(char *) with a null pointer.

*  Now puts a null byte in the tail end of the buffer during a
   SaveTo(char *) even if the editor buffers are empty.  Will
   refuse to save to a null pointer.
2001-10-26 23:36:17 +00:00

98 lines
2.9 KiB
Plaintext

$OpenBSD: patch-Makefile_in,v 1.5 2001/10/26 23:36:17 wilfried Exp $
--- Makefile.in.orig Wed Aug 29 21:15:08 2001
+++ Makefile.in Sat Oct 27 00:51:31 2001
@@ -29,7 +29,7 @@ FLTKLIBDIR = @ac_fltk_libraries@
# Program options...
#
-ARFLAGS = crvs
+ARFLAGS = r
CFLAGS = -I. -I.. -I$(FLTKROOT)/include @CFLAGS@ @ac_fltk2@
CXXFLAGS = -I. -I.. -I$(FLTKROOT)/include @CXXFLAGS@ @ac_fltk2@
LIBS = @ac_fltk_static@ -L$(FLTKROOT)/lib @LIBS@ -lXext -lX11 -lm @ac_fltk_dso@ $(GLLIB)
@@ -39,15 +39,15 @@ LDFLAGS = @LDFLAGS@
# Rules...
#
-.SILENT:
-.SUFFIXES: .c .cxx .h .o
+#.SILENT:
+#.SUFFIXES: .c .cxx .h .o
.c.o:
- echo Compiling $<...
- $(CC) $(CFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
+# echo Compiling $<...
+ $(CC) $(CFLAGS) -c $< -o $@
.cxx.o:
- echo Compiling $<...
- echo $(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
- $(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
+# echo Compiling $<...
+# echo $(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
+ $(CXX) $(CXXFLAGS) -c $< -o $@
#
@@ -62,7 +62,7 @@ INCLUDEDEPS = FL/Fl_Editor.H FL/Fl_Fancy
# Make all targets...
#
-all: libfleditor.a $(DSONAME) test
+all: libfleditor.a $(DSONAME)
#
# Remove object and target files...
@@ -93,27 +93,32 @@ install: libfleditor.a
#
test: test/progress test/simple test/single test/status test/multiple
+ test/progress
+ test/simple
+ test/single
+ test/status
+ test/multiple
test/progress: test/progress.o
echo Building $@ test program
- echo $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
+ echo $(CXX) $(LDFLAGS) test/progress.o libfleditor.a $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) test/progress.o libfleditor.a $(LIBS) -o $@
test/simple: test/simple.o
echo Building $@ test program
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) test/simple.o libfleditor.a $(LIBS) -o $@
test/status: test/status.o
echo Building $@ test program
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) test/status.o libfleditor.a $(LIBS) -o $@
test/single: test/single.o
echo Building $@ test program
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) test/single.o libfleditor.a $(LIBS) -o $@
test/multiple: test/multiple.o test/multfunc.o
echo Building $@ test program
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) test/multiple.o test/multfunc.o libfleditor.a $(LIBS) -o $@
#
# Make the editor widget library.
@@ -124,12 +129,10 @@ EDITOR_OBJS = src/Fl_Editor.o src/Fl_Fan
src/editengine.o src/lists.o src/wstring.o
libfleditor.a: $(EDITOR_OBJS)
- echo Building library $@...
- $(RM) libfleditor.a
$(AR) $(ARFLAGS) libfleditor.a $(EDITOR_OBJS)
$(RANLIB) libfleditor.a
-libfleditor.so: $(EDITOR_OBJS)
+libfleditor.so.1.1: $(EDITOR_OBJS)
echo Building library $@...
$(RM) libfleditor.so
@DSOCOMMAND@ @DSOLIBNAME@@DSOEXT@ $(EDITOR_OBJS)