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