summaryrefslogtreecommitdiff
path: root/x11/efltk/patches/patch-ae
blob: 1ae860529c4d40c66f31a5c64f488d337bc5ef8e (plain)
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
$NetBSD: patch-ae,v 1.1 2006/02/18 14:07:54 joerg Exp $

--- makeinclude.in.orig	2006-02-01 18:02:22.000000000 +0000
+++ makeinclude.in
@@ -104,8 +104,8 @@ ODBCLIBS	=$(FLODBCLIB) $(UNIXODBCLIB)
 MYSQLLIBS_	=$(FLMYSQLLIB) $(MYSQLLIBS)
 
 EXEEXT		=@EXEEXT@
-BUILDTARGETS	=@BUILDTARGETS@
-INSTALLTARGETS	=@INSTALLTARGETS@
+BUILDTARGETS	=libtool programs
+INSTALLTARGETS	=install_libtool install_programs
 
 # Build commands and filename extensions...
 .SUFFIXES:	.0 .1 .3 .c .cxx .h .fl .man .o .z $(EXEEXT)
@@ -131,6 +131,14 @@ INSTALLTARGETS	=@INSTALLTARGETS@
 	@echo Compiling $<...
 	@$(CC) $(CFLAGS) -c $< -o $@
 
+%.lo : %.cpp
+	@echo Compiling $<...
+	@${LIBTOOL} --mode=compile $(CXX) $(CXXFLAGS) -DFL_SHARED -c $< -o $@
+
+%.lo : %.c
+	@echo Compiling $<...
+	@${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -DFL_SHARED -c $< -o $@
+
 %.shared.o : %.cpp
 	@echo Compiling $<...
 	@$(CXX) $(DSOCFLAGS) $(CXXFLAGS) -c $< -o $@