aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/fl_editor/files/patch-Makefile.in
blob: a143488cd077df909846497839ed6f0b750ef55c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- Makefile.in.orig	Wed Jan 10 00:11:24 2001
+++ Makefile.in	Sat Aug 18 09:03:39 2001
@@ -40,14 +40,19 @@
 #
 
 .SILENT:
-.SUFFIXES:	.c .cxx .h .o
+.SUFFIXES:	.c .cxx .h .o .lo
 .c.o:
 	echo Compiling $<...
 	$(CC) $(CFLAGS) -c $< -o $(<D)/$(basename $(<F)).o 
 .cxx.o:
 	echo Compiling $<...
-	echo $(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
 	$(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
+.c.lo:
+	echo Compiling $<...
+	$(CC) $(CFLAGS) -fPIC -c $< -o $(<D)/$(basename $(<F)).lo
+.cxx.lo:
+	echo Compiling $<...
+	$(CXX) $(CXXFLAGS) -fPIC -c $< -o $(<D)/$(basename $(<F)).lo
 
 
 #
@@ -62,7 +67,7 @@
 # Make all targets...
 #
 
-all:	libfleditor.a $(DSONAME) test
+all:	libfleditor.a $(DSONAME)
 
 #
 # Remove object and target files...
@@ -86,7 +91,10 @@
 
 install: libfleditor.a
 	echo "Installing library to $(FLTKLIBDIR)"
-	cp libfleditor.a $(FLTKLIBDIR)	
+	rm -f $(FLTKLIBDIR)/libfleditor.*
+	cp libfleditor.a $(DSONAME) $(FLTKLIBDIR)	
+	echo "Installing headers to $(FLTKROOT)/include/FL"
+	cp FL/*.[Hh] $(FLTKROOT)/include/FL
 
 #
 # Make the test programs.
@@ -122,6 +130,7 @@
 EDITOR_OBJS = src/Fl_Editor.o src/Fl_FancyEditor.o src/Fl_FancyMultiEditor.o \
         src/Fl_MultiEditor.o src/Fl_ProgressBox.o src/Fl_StatusPanel.o \
         src/editengine.o src/lists.o src/wstring.o
+EDITOR_SHOBJS = $(EDITOR_OBJS:.o=.lo)
 
 libfleditor.a:	$(EDITOR_OBJS)
 	echo Building library $@...
@@ -129,15 +138,14 @@
 	$(AR) $(ARFLAGS) libfleditor.a $(EDITOR_OBJS)
 	$(RANLIB) libfleditor.a
 
-libfleditor.so:	$(EDITOR_OBJS)
+$(DSONAME):	$(EDITOR_SHOBJS)
 	echo Building library $@...
-	$(RM) libfleditor.so
-	@DSOCOMMAND@ @DSOLIBNAME@@DSOEXT@ $(EDITOR_OBJS)
-#        echo $(DSOCOMMAND) $(DSONAME)
-#	$(LD) -shared $(LDFLAGS) -o $@ $^ 
+	$(RM) $(DSONAME)
+	@DSOCOMMAND@ $(DSONAME) $(EDITOR_SHOBJS)
 
 
 $(EDITOR_OBJS):	$(INCLUDEDEPS)
+$(EDITOR_SHOBJS):	$(INCLUDEDEPS)
 
 #
 # End of Makefile.