3 include $(SRCDIR)/config/aros.cfg
5 #MM workbench-classes-zune-texteditor-mcp : includes \
7 #MM workbench-classes-zune-texteditor-class \
8 #MM workbench-classes-zune-texteditor-mcp-locale \
9 #MM workbench-classes-zune-betterstring-class \
10 #MM workbench-classes-zune-hotkeystring-class
12 #MM- clean : texteditor-mcp-clean
14 # We need to use -idirafter, so that we
15 # *don't* pick up the project's local MUI headers.
16 USER_INCLUDES = -idirafter $(SRCDIR)/$(CURDIR)/../include -I$(TOP)/$(CURDIR)/ -I$(SRCDIR)/$(CURDIR)/../mcc
17 USER_CFLAGS := -DAROS_ABI_V1
18 USER_LDFLAGS := -static
30 %build_module_simple mmake=workbench-classes-zune-texteditor-mcp \
31 modname=TextEditor modtype=mcp \
37 INCLUDE_FILES := TextEditor_mcp.h
38 %copy_includes path=mui
41 TARGETDIR := $(AROS_CATALOGS)
42 LANGUAGES := $(basename $(notdir $(call WILDCARD,$(SRCDIR)/$(CURDIR)/locale/*.po)))
43 CATALOGS := $(addprefix $(TARGETDIR)/,$(addsuffix /TextEditor_mcp.catalog,$(LANGUAGES)))
46 workbench-classes-zune-texteditor-mcp-locale : locale.h locale.c $(CATALOGS)
49 locale.c: $(SRCDIR)/$(CURDIR)/locale/TextEditor_mcp.pot $(SRCDIR)/$(CURDIR)/C_h.sd $(SRCDIR)/$(CURDIR)/C_c.sd
50 $(FLEXCAT) $(SRCDIR)/$(CURDIR)/locale/TextEditor_mcp.pot locale.h=$(SRCDIR)/$(CURDIR)/C_h.sd locale.c=$(SRCDIR)/$(CURDIR)/C_c.sd
52 $(TARGETDIR)/%/TextEditor_mcp.catalog: $(SRCDIR)/$(CURDIR)/locale/%.po
53 $(ECHO) "Building catalog $@"
55 $(FLEXCAT) POFILE $< CATALOG $@