arch/cpu.resource: remove dead code
[AROS.git] / workbench / classes / zune / texteditor / mcp / mmakefile.src
blob079d74bd789dd4d29011471ddaad08d68a1e2f45
1 #   $Id$
3 include $(SRCDIR)/config/aros.cfg
5 #MM workbench-classes-zune-texteditor-mcp : includes \
6 #MM                                         linklibs \
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
20 FILES := library \
21      locale \
22          CreatePrefsGroup \
23          Dispatcher \
24          Keybindings \
25          KeyStorage \
26          icon \
27          ObjectCreator \
28          Debug
29          
30 %build_module_simple mmake=workbench-classes-zune-texteditor-mcp \
31   modname=TextEditor modtype=mcp \
32   files=$(FILES)
35 #MM includes-copy
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)))
45 #MM
46 workbench-classes-zune-texteditor-mcp-locale : locale.h locale.c $(CATALOGS)
48 locale.h: locale.c
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 $@"
54         $(MKDIR) $(dir $@)
55         $(FLEXCAT) POFILE $< CATALOG $@
57 %common