Advertisement
IchGmbH

Makefile-Fop

May 4th, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 3.61 KB | None | 0 0
  1. CC = gcj-4
  2. M2_REPOS=C:/Users/-/.m2/repository/
  3. FOP=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/fop/1.0/fop-1.0.jar)
  4. COMMONS_LOGGING=$(addprefix $(M2_REPOS),commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar)
  5. BATIK_SCRIPT=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-script/1.7/batik-script-1.7.jar)
  6. BATIK_GVT=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-gvt/1.7/batik-gvt-1.7.jar)
  7. BATIK_TRANSCODER=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-transcoder/1.7/batik-transcoder-1.7.jar)
  8. BATIK_CSS=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar)
  9. XML_APIS_EXT=$(addprefix $(M2_REPOS),xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar)
  10. COMMONS_IO=$(addprefix $(M2_REPOS),commons-io/commons-io/1.3.1/commons-io-1.3.1.jar)
  11. AVALON_FRAMEWORK_IMPL=$(addprefix $(M2_REPOS),org/apache/avalon/framework/avalon-framework-impl/4.3.1/avalon-framework-impl-4.3.1.jar)
  12. AVALON_FRAMEWORK_API=$(addprefix $(M2_REPOS),org/apache/avalon/framework/avalon-framework-api/4.3.1/avalon-framework-api-4.3.1.jar)
  13. BATIK_DOM=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar)
  14. BATIK_SVGGEN=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-svggen/1.7/batik-svggen-1.7.jar)
  15. BATIK_EXT=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar)
  16. BATIK_ANIM=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar)
  17. BATIK_XML=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar)
  18. BATIK_SVG_DOM=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar)
  19. XALAN=$(addprefix $(M2_REPOS),xalan/xalan/2.6.0/xalan-2.6.0.jar)
  20. BATIK_AWT_UTIL=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar)
  21. XMLGRAPHICS_COMMONS=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/xmlgraphics-commons/1.4/xmlgraphics-commons-1.4.jar)
  22. BATIK_PARSER=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar)
  23. XML_APIS=$(addprefix $(M2_REPOS),xml-apis/1.3.04/xml-apis-1.3.04.jar)
  24. BATIK_EXTENSION=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-extension/1.7/batik-extension-1.7.jar)
  25. BATIK_BRIDGE=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-bridge/1.7/batik-bridge-1.7.jar)
  26. BATIK_UTIL=$(addprefix $(M2_REPOS),org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar)
  27. CLASSPATH=$(COMMONS_LOGGING):$(BATIK_SCRIPT):$(BATIK_GVT):$(BATIK_TRANSCODER):$(BATIK_CSS):$(XML_APIS_EXT):$(COMMONS_IO):$(AVALON_FRAMEWORK_IMPL):$(AVALON_FRAMEWORK_API):$(BATIK_DOM):$(BATIK_SVGGEN):$(BATIK_EXT):$(BATIK_ANIM):$(BATIK_XML):$(BATIK_SVG_DOM):$(XALAN):$(BATIK_AWT_UTIL):$(XMLGRAPHICS_COMMONS):$(BATIK_PARSER):$(XML_APIS):$(BATIK_EXTENSION):$(BATIK_BRIDGE):$(BATIK_UTIL)
  28. #LDFLAGS = -Wl,-l-org-w3c-dom
  29. #LDFLAGS += -Wl,-l-org-xml-sax
  30. CXXFLAGS = --classpath=$(CLASSPATH)
  31.  
  32. fop.exe:
  33.     @echo Compiling: $@
  34.     @echo Fop location: $(FOP)
  35.     $(CC) --main=org.apache.fop.cli.Main -mconsole -o fop.exe -o $(OUTDIR)fop.o $(FOP) $(CXXFLAGS)
  36.     @echo
  37. commons-logging: FJAR = $(COMMONS_LOGGING)
  38. commons-logging: commons-logging.dll
  39.  
  40. %.dll: FO = $(addsuffix .o,$@)
  41. %.dll: FOLIB = $(addprefix $(LIB_FOP),$(addsuffix .o,$@))
  42. %.dll: FA = $(addsuffix .a,$@)
  43. %.dll: FALIB = $(addprefix $(LIB_FOP),$(addsuffix .a,$@))
  44. %.dll: FDEF = $(addsuffix .def,$@)
  45. %.dll: LIBS = $(foreach lib, $^, -l$(lib))
  46. %.dll:
  47.     @echo Compiling: $@
  48.     @echo
  49.     $(CC) -c -o $@.o $(FJAR) $(LDFLAGS) $(CXXFLAGS)
  50.     $(CC) -shared $(dependency_libs) -o $@.o -o $@ -Wl,--output-def,$(FDEF),--out-implib,$(FA) $(FO) $(LDFLAGS) $(CXXFLAGS)
  51.     @echo
  52. .PHONY: clean
  53. clean:
  54.     rm *.o
  55.     rm *.a
  56.     rm *.def
  57.     rm *.dll
  58.     rm *.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement