1 # $Date: 2011-08-09 11:15:58 +0200 (Di, 09. Aug 2011) $
3 ##############################################################################
6 TOPLEVEL=$(shell pwd)/../../..
9 # Native FlexCat doesn't like Linux paths
18 ##############################################################################
22 ##############################################################################
24 # Project Object files
27 OBJS = $(BEGIN_OBJS) \
28 $(OBJDIR)/PatternPrefs.o \
29 $(OBJDIR)/Backfill.o \
30 $(OBJDIR)/BitMapMCC.o \
31 $(OBJDIR)/DataTypesMCC.o \
32 $(OBJDIR)/DoLoadDT.o \
35 ##############################################################################
39 ifneq ($(MAKECMDGOALS),clean)
40 -include $(OBJS:.o=.d)
43 ##############################################################################
48 NAME = Pattern.prefsplugin
49 NAME_DB = $(NAME).debug
51 ##############################################################################
53 PREFSDIR = ../../../Prefs/Pattern
55 ##############################################################################
57 .PHONY: all install clean bump dump nodebug
59 all: $(BINDIR)/$(NAME) \
62 ##############################################################################
64 PatternPrefs.c : $(SCALOS_LOCALE)
66 $(SCALOS_LOCALE) : $(PREFSDIR)/ScalosPattern.cd
68 $(FLEXCAT) $(subst ../,$(PARENTDIR),$<) $@=$(SDPATH)/CatComp_h.sd
70 ##############################################################################
72 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) : $(OBJS)
73 $(ECHO) "Link $(NAME)"
74 @$(CC) $(OBJS) $(LFLAGS) $(DEFINES) -o$(BINDIR)/$(NAME_DB)
75 @$(STRIP) $(SFLAGS) $(BINDIR)/$(NAME_DB) -o $(BINDIR)/$(NAME)
78 ##############################################################################
81 -@$(ECHO) "Installing $(NAME)"
82 @copy $(BINDIR)/$(NAME) Scalos:Prefs/ clone
87 -@$(RM) -frv $(OBJDIR)/*.o $(OBJDIR)/*.d $(OBJDIR)/*.d.* \
88 $(OBJDIR)/*.i $(OBJDIR)/*.s \
89 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) \
93 ##############################################################################