pkgsrc/x11/efltk/patches/patch-ae
joerg ee2861051f Convert to libtool. Shared theme modules are named foo.theme.so by
default, but foo.theme is tried afterwards as fallback. Bump revision.
Discussed with jlam@
2006-02-18 14:07:54 +00:00

30 lines
926 B
Text

$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 $@