2005-12-25 15:23:18 -05:00
|
|
|
$OpenBSD: patch-Makefile_in,v 1.7 2005/12/25 20:23:18 naddy Exp $
|
2002-08-10 16:04:16 -04:00
|
|
|
--- Makefile.in.orig Fri Jun 14 23:12:25 2002
|
|
|
|
+++ Makefile.in Sat Aug 10 19:49:59 2002
|
2001-10-26 19:36:17 -04:00
|
|
|
@@ -29,7 +29,7 @@ FLTKLIBDIR = @ac_fltk_libraries@
|
2001-04-02 11:11:46 -04:00
|
|
|
# Program options...
|
|
|
|
#
|
|
|
|
|
|
|
|
-ARFLAGS = crvs
|
|
|
|
+ARFLAGS = r
|
2001-10-26 19:36:17 -04:00
|
|
|
CFLAGS = -I. -I.. -I$(FLTKROOT)/include @CFLAGS@ @ac_fltk2@
|
|
|
|
CXXFLAGS = -I. -I.. -I$(FLTKROOT)/include @CXXFLAGS@ @ac_fltk2@
|
2002-08-10 16:04:16 -04:00
|
|
|
LIBS = @ac_fltk_static@ -L$(FLTKROOT)/lib @LIBS@ -lXext -lX11 -lm -ljpeg -lpng @ac_fltk_dso@ $(GLLIB)
|
2001-04-02 11:11:46 -04:00
|
|
|
@@ -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...
|
2001-10-25 18:34:48 -04:00
|
|
|
@@ -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 $@
|
2002-08-10 16:04:16 -04:00
|
|
|
+ $(CXX) $(LDFLAGS) test/progress.o -R. -L. -lfleditor $(LIBS) -o $@
|
2001-10-25 18:34:48 -04:00
|
|
|
|
|
|
|
test/simple: test/simple.o
|
|
|
|
echo Building $@ test program
|
|
|
|
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
|
2002-08-10 16:04:16 -04:00
|
|
|
+ $(CXX) $(LDFLAGS) test/simple.o -R. -L. -lfleditor $(LIBS) -o $@
|
2001-10-25 18:34:48 -04:00
|
|
|
|
|
|
|
test/status: test/status.o
|
|
|
|
echo Building $@ test program
|
|
|
|
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
|
2002-08-10 16:04:16 -04:00
|
|
|
+ $(CXX) $(LDFLAGS) test/status.o -R. -L. -lfleditor $(LIBS) -o $@
|
2001-10-25 18:34:48 -04:00
|
|
|
|
|
|
|
test/single: test/single.o
|
|
|
|
echo Building $@ test program
|
|
|
|
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
|
2002-08-10 16:04:16 -04:00
|
|
|
+ $(CXX) $(LDFLAGS) test/single.o -R. -L. -lfleditor $(LIBS) -o $@
|
2001-10-25 18:34:48 -04:00
|
|
|
|
|
|
|
test/multiple: test/multiple.o test/multfunc.o
|
|
|
|
echo Building $@ test program
|
|
|
|
- $(CXX) $(LDFLAGS) $^ libfleditor.a $(LIBS) -o $@
|
2002-08-10 16:04:16 -04:00
|
|
|
+ $(CXX) $(LDFLAGS) test/multiple.o test/multfunc.o -R. -L. -lfleditor $(LIBS) -o $@
|
2001-10-25 18:34:48 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Make the editor widget library.
|
|
|
|
@@ -124,12 +129,10 @@ EDITOR_OBJS = src/Fl_Editor.o src/Fl_Fan
|
2001-04-02 11:11:46 -04:00
|
|
|
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
|
|
|
|
|
2001-04-15 06:32:06 -04:00
|
|
|
-libfleditor.so: $(EDITOR_OBJS)
|
2005-12-25 15:23:18 -05:00
|
|
|
+libfleditor.so.$(LIBfleditor_VERSION): $(EDITOR_OBJS)
|
2001-04-15 06:32:06 -04:00
|
|
|
echo Building library $@...
|
|
|
|
$(RM) libfleditor.so
|
|
|
|
@DSOCOMMAND@ @DSOLIBNAME@@DSOEXT@ $(EDITOR_OBJS)
|