Commit 8ea0b845bd7c63a0d0cc4afaaf16f22bb132838b

Authored by Perry Werneck
1 parent 921d9989

Melhorando construção do módulo base para extensões.

Showing 2 changed files with 9 additions and 6 deletions   Show diff stats
pw3270.spec.in
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 %define _office 0 28 %define _office 0
29 %define _php 0 29 %define _php 0
30 %define _ooRexx 1 30 %define _ooRexx 1
31 -%define _java 1 31 +%define _java 0
32 %define _python 1 32 %define _python 1
33 33
34 %define _distro linux 34 %define _distro linux
@@ -484,9 +484,11 @@ rm -rf %{buildroot} @@ -484,9 +484,11 @@ rm -rf %{buildroot}
484 %{_datadir}/@PACKAGE@/ui/98trace.xml 484 %{_datadir}/@PACKAGE@/ui/98trace.xml
485 %{_datadir}/@PACKAGE@/ui/99debug.xml 485 %{_datadir}/@PACKAGE@/ui/99debug.xml
486 %{_libdir}/lib@PACKAGE@.so 486 %{_libdir}/lib@PACKAGE@.so
487 -%{_libdir}/@PACKAGE@class.a  
488 %{_libdir}/pkgconfig/@PACKAGE@.pc 487 %{_libdir}/pkgconfig/@PACKAGE@.pc
489 488
  489 +%{_libdir}/@PACKAGE@cpp.a
  490 +%{_includedir}/@PACKAGE@cpp.h
  491 +
490 %dir %{_datadir}/@PACKAGE@/sample 492 %dir %{_datadir}/@PACKAGE@/sample
491 %{_datadir}/@PACKAGE@/sample/* 493 %{_datadir}/@PACKAGE@/sample/*
492 494
src/classlib/Makefile.in
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 # 25 #
26 26
27 PACKAGE=@PACKAGE_NAME@ 27 PACKAGE=@PACKAGE_NAME@
28 -LIBNAME=$(PACKAGE)class.a 28 +LIBNAME=$(PACKAGE)cpp.a
29 29
30 #---[ Sources ]---------------------------------------------------------------- 30 #---[ Sources ]----------------------------------------------------------------
31 31
@@ -92,8 +92,8 @@ $(BINRLS)/$(LIBNAME): $(foreach SRC, $(basename $(CLASS_SRC)), $(OBJRLS)/$(SRC). @@ -92,8 +92,8 @@ $(BINRLS)/$(LIBNAME): $(foreach SRC, $(basename $(CLASS_SRC)), $(OBJRLS)/$(SRC).
92 @ar rs $@ $^ 92 @ar rs $@ $^
93 93
94 install: Release 94 install: Release
95 - @$(MKDIR) $(DESTDIR)$(datarootdir)/$(PACKAGE)  
96 - @$(INSTALL_DATA) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(datarootdir)/$(PACKAGE) 95 + @$(MKDIR) $(DESTDIR)$(libdir)
  96 + @$(INSTALL_DATA) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir)
97 97
98 #---[ Debug targets ]---------------------------------------------------------- 98 #---[ Debug targets ]----------------------------------------------------------
99 99
@@ -117,7 +117,8 @@ install-sdk: $(BINRLS)/$(LIBNAME) @@ -117,7 +117,8 @@ install-sdk: $(BINRLS)/$(LIBNAME)
117 @$(MKDIR) $(DESTDIR)$(datarootdir)/$(PACKAGE)/sample/classlib 117 @$(MKDIR) $(DESTDIR)$(datarootdir)/$(PACKAGE)/sample/classlib
118 @$(INSTALL_DATA) *.cc $(DESTDIR)$(datarootdir)/$(PACKAGE)/sample/classlib 118 @$(INSTALL_DATA) *.cc $(DESTDIR)$(datarootdir)/$(PACKAGE)/sample/classlib
119 @$(MKDIR) $(DESTDIR)/$(includedir)/pw3270 119 @$(MKDIR) $(DESTDIR)/$(includedir)/pw3270
120 - @$(INSTALL_DATA) ../include/pw3270/class.h $(DESTDIR)/$(includedir)/pw3270 120 + @$(INSTALL_DATA) ../include/pw3270/class.h $(DESTDIR)/$(includedir)/pw3270
  121 + @$(LN_S) ./pw3270/class.h $(DESTDIR)/$(includedir)/$(PACKAGE)cpp.h
121 @$(MKDIR) $(DESTDIR)$(libdir) 122 @$(MKDIR) $(DESTDIR)$(libdir)
122 @$(INSTALL_DATA) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir) 123 @$(INSTALL_DATA) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir)
123 124