X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=3a55e1211eb977e0baa6b6e308d96dee72e3533a;hb=406d820e1983cade888f3cc3931dc1fb0c5ffea3;hp=49433fee89ec0eb15688bd29768b12e7c48760bf;hpb=d217f68a9e53ec6e800ae31ca3af8ed8b6f9ece9;p=libfirm diff --git a/Makefile b/Makefile index 49433fee8..3a55e1211 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ variant ?= debug srcdir ?= $(top_srcdir) builddir ?= $(top_builddir)/$(variant) -docdir ?= $(top_builddir)/firm-doc +docdir ?= $(top_builddir)/doc # This hides the noisy commandline outputs. You can see them with "make Q=" Q ?= @ @@ -26,7 +26,7 @@ AR ?= ar DLLEXT ?= .so # Variants -CFLAGS_all = -fPIC -DHAVE_FIRM_REVISION_H +CFLAGS_all = -std=c99 -fPIC -DHAVE_FIRM_REVISION_H CFLAGS_debug = $(CFLAGS_all) -O0 -g3 -DDEBUG_libfirm CFLAGS_profile = $(CFLAGS_all) -O3 -pg -DNDEBUG -fno-inline LINKFLAGS_profile = -pg @@ -35,7 +35,7 @@ CFLAGS_optimize = $(CFLAGS_all) -O3 -DNDEBUG # General flags CFLAGS += $(CFLAGS_$(variant)) CFLAGS += -Wall -W -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -LINKFLAGS += $(LINKFLAGS_$(variant)) +LINKFLAGS += $(LINKFLAGS_$(variant)) -lm VPATH = $(srcdir) REVISION ?= $(shell git describe --abbrev=40 --always --dirty --match '') @@ -170,7 +170,7 @@ $(libfirm_a): $(libfirm_OBJECTS) $(libfirm_dll): $(libfirm_OBJECTS) @echo LINK $@ - $(Q)$(LINK) -shared -o $@ $^ + $(Q)$(LINK) -shared $(LINKFLAGS) -o $@ $^ # Generic rules UNUSED := $(shell mkdir -p $(libfirm_DIRS:%=$(builddir)/%)) @@ -179,17 +179,17 @@ $(builddir)/%.o: %.c $(IR_SPEC_GENERATED_FILES) config.h $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(libfirm_CPPFLAGS) -MMD -c -o $@ $< $(docdir)/libfirm.tag: $(IR_SPEC_GENERATED_FILES) Doxyfile $(wildcard include/libfirm/*.h) $(wildcard include/libfirm/adt/*.h) - @echo Doxygen + @echo Doxygen $@ $(Q)$(DOXYGEN) DOCU_GENERATOR := scripts/gen_docu.py $(docdir)/html/nodes.html: $(docdir)/libfirm.tag $(DOCU_GENERATOR) $(IR_SPEC) scripts/spec_util.py scripts/style.css - @echo gen_docu.py + @echo gen_docu.py $@ $(Q)$(DOCU_GENERATOR) $(docdir)/libfirm.tag "" $@ $(Q)cp scripts/style.css $(docdir)/html -.PHONY: documentation -documentation: $(docdir)/libfirm.tag $(docdir)/html/nodes.html +.PHONY: doc +doc: $(docdir)/libfirm.tag $(docdir)/html/nodes.html .PHONY: clean clean: