The R Project SVN R

Rev

Rev 30071 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#
# ${R_HOME}/src/gnuwin32/graphapp/Makefile

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ../../..
subdir = src/gnuwin32/graphapp

include $(top_builddir)/Makeconf

DEFS= -DINDLL -DR_DLL_BUILD

SOURCES = \
  arith.c array.c bitmaps.c buttons.c clipboard.c context.c controls.c \
  cursors.c dialogs.c drawing.c drawtext.c events.c fonts.c gbuttons.c \
  gdraw.c gif.c gimage.c gmenus.c image.c init.c menus.c \
  metafile.c objects.c printer.c rgb.c status.c stdimg.c strings.c \
  tooltips.c windows.c xredef.c
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)
HEADERS = ga.h graphapp.h internal.h stdimg.h str.h

ALL_CPPFLAGS = -I$(srcdir) -I$(srcdir)/.. $(R_XTRA_CPPFLAGS) $(CPPFLAGS) $(DEFS)

all: Makefile R

Makefile: $(srcdir)/Makefile.in \
  $(top_builddir)/config.status \
  ../../include/Rversion.h \
  $(SOURCES)
    @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

Makedeps: Makefile $(DEPENDS)
    @cat $(DEPENDS) >> Makefile
    @touch $@

R: Makefile
    @$(MAKE) Makedeps
    $(MAKE) --no-print-directory ga.a

ga.a: $(OBJECTS)
    rm -f $@
    $(AR) cr $@ $^
    $(RANLIB) $@

mostlyclean: clean
clean:
    @-rm -f Makedeps *.d *.o *.a
distclean: clean
    @-rm -f Makefile
maintainer-clean: distclean

## Automagically generated dependencies: