Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / Plugins / Prefs / Menu / makefile
blob009b4fe276f686a691b767f250a58e869a1d50bf
1 # makefile für Scalos Menu.prefsplugin
2 # $Date$
3 # $Revision$
4 #############################################################
6 SDPATH = //
8 SUBDIRMAKE = $(MAKE) -s -C
9 FLEXCAT = FlexCat
10 CATCOMP = CatComp
11 FLEXCAT = FlexCat
12 AS = phxAss
13 LD = slink
14 CC = sc
15 ECHO = echo
16 LIBS = LIB:sc.lib \
17 LIB:debug.lib \
18 LIB:mempools.lib \
19 ///SAS-lib/snprintf.lib \
20 LIB:amiga.lib
21 LDFLAGS = quiet batch noicons
22 PRECOMP = Include:all.gst
23 OBJDIR = .sasobj
24 BINDIR = .bin_os3
25 PREFSPATH = ../../../Prefs/Menu
26 DATATYPESMCC_DIR = ../../../common/DataTypesMCC
27 COMMON_DIR = ../../../common/Plugin
29 .SUFFIXES: .asm
31 #############################################################
33 CSRCS = $(COMMON_DIR)/plugin-classic.c \
34 MenuPrefs.c \
35 DefaultMenu.c \
36 $(DATATYPESMCC_DIR)/DataTypesMCC.c \
38 #############################################################
40 PLUGIN = Menu.prefsplugin
41 PLUGINDBG = $(PLUGIN).debug
42 CAT_FILE = Scalos/ScalosMenu.catalog
43 DESTTOOL = Scalos:Prefs/
44 DESTCAT = Locale:Catalogs
45 SRCCAT = $(subst ../,/,$(PREFSPATH))
46 SCALOS_LOCALE = $(OBJDIR)/ScalosMenu_locale.h
47 CATCOMPHEADER = $(SCALOS_LOCALE)
49 CATS = dansk \
50 deutsch \
51 español \
52 français \
53 italiano \
54 svenska \
55 ÃeÓtina
57 ALLCATS = $(foreach cat,$(CATS),$(SRCCAT)/catalogs/$(cat)/$(CAT_FILE))
59 #############################################################
61 CFLAGS = optimize nostackcheck nover dbg=s DATA=far \
62 define SCALOSLOCALE=$(SCALOS_LOCALE) \
63 idlen=64 idir=///include \
64 idir=$(subst ../,/,$(DATATYPESMCC_DIR)) \
65 idir=$(subst ../,/,$(PREFSPATH)) \
66 idir=///common/Plugin
67 AFLAGS = quiet DS opt=NRQB NOEXE linedebug I=SC:Assembler_Headers
68 #AFLAGS = -t -iINCLUDE:
71 #############################################################
73 $(OBJDIR)::
74 @[ -d $(OBJDIR) ] || mkdir $(OBJDIR) > /dev/null 2>&1
76 XSRCS = $(notdir $(CSRCS))
77 OBJS = $(ASRCS:%.asm=$(OBJDIR)/%.o) $(XSRCS:%.c=$(OBJDIR)/$(notdir %).o)
79 #############################################################
81 All: $(BINDIR)/$(PLUGIN) \
82 $(BINDIR)/$(PLUGINDBG) \
83 allcatalogs
84 # install
85 # clean
87 #############################################################
89 $(OBJDIR)/plugin-classic.o : $(COMMON_DIR)/plugin-classic.c
90 @printf '\033[32mCompile: \033[31m\033[1m$<\033[0m\n'
91 @$(CC) $(CFLAGS) $(subst ../,/,$<) objectname $@
93 $(OBJDIR)/DataTypesMCC.o : $(DATATYPESMCC_DIR)/DataTypesMCC.c
94 @printf '\033[32mCompile: \033[31m\033[1m$<\033[0m\n'
95 @$(CC) $(CFLAGS) $(subst ../,/,$<) objectname $@
97 $(OBJDIR)/%.o : %.c
98 @printf '\033[32mCompile: \033[31m\033[1m$<\033[0m\n'
99 @$(CC) $(CFLAGS) $*.c objectname $@
101 #############################################################
103 $(OBJDIR)/plugin-classic.o : $(COMMON_DIR)/plugin-common.c \
104 plugin_data.h $(COMMON_DIR)/plugin.h
106 $(OBJDIR)/DataTypesMCC.o: $(DATATYPESMCC_DIR)/DataTypesMCC.c \
107 $(DATATYPESMCC_DIR)/DataTypesMCC.h
109 $(OBJDIR)/MenuPrefs.o : MenuPrefs.h MenuPrefsImage.h \
110 $(SCALOS_LOCALE) plugin_data.h $(COMMON_DIR)/plugin.h
112 $(OBJDIR)/DefaultMenu.o : DefaultMenu.c MenuPrefs.h \
113 $(SCALOS_LOCALE)
115 #############################################################
117 $(CATCOMPHEADER) : $(PREFSPATH)/ScalosMenu.cd
118 @printf '\033[32mMake CatComp header: \033[31m\033[1m$@ \033[32mfrom \033[31m$<\033[0m\n'
119 $(FLEXCAT) $(subst ../,/,$<) $@=$(SDPATH)/CatComp_h.sd
121 $(BINDIR)/$(PLUGIN) : $(OBJS)
122 @printf '\033[32mLink: \033[31m\033[1m$@\033[0m\n'
123 @$(LD) to $@ FROM $(OBJS) lib $(LIBS) $(LDFLAGS) STRIPDEBUG
125 $(BINDIR)/$(PLUGINDBG) : $(OBJS)
126 @printf '\033[32mLink: \033[31m\033[1m$@\033[0m\n'
127 @$(LD) to $@ FROM $(OBJS) lib $(LIBS) $(LDFLAGS) ADDSYM
129 #############################################################
131 install:
132 @avail flush
133 @printf '\033[32mInstall: \033[31m\033[1m$(PLUGIN)\033[0m\n'
134 @copy $(BINDIR)/$(PLUGIN) $(DESTTOOL)
135 @printf '\033[32mInstall: \033[31m\033[1m$(CAT_FILE)\033[0m\n'
136 -@$(foreach cat,$(CATS),copy "$(SRCCAT)/catalogs/$(cat)/$(CAT_FILE)" "$(DESTCAT)/$(cat)/Scalos" clone;)
138 #############################################################
140 clean:
141 @printf '\033[32mCleanup: \033[31m\033[1m'
142 -@delete $(BINDIR)/$(PLUGIN) $(BINDIR)/$(PLUGINDBG) $(OBJS) $(subst ../,/,$(CATCOMPHEADER)) $(ALLCATS)
143 @printf '\033[0m'
145 #############################################################
147 # make all Scalos preferences .catalogs
148 allcatalogs:
149 -@$(foreach cat,$(CATS),$(SUBDIRMAKE) $(PREFSPATH)/catalogs/$(cat)/Scalos;)
151 #############################################################