Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / Plugins / FileTypes / Picture_Dimensions / makefile-new
blobc9ae888bde7e9f9f923fbb47033feaf6f3a16484
1 # $Date: 2011-07-31 22:05:01 +0200 (So, 31. Jul 2011) $
2 # $Revision: 813 $
3 ##############################################################################
5 ifndef TOPLEVEL
6         TOPLEVEL=$(shell pwd)/../../..
7 endif
9 # Native FlexCat doesn't like Linux paths
10 ifeq ($(CROSS), )
11         SDPATH=//
12 else
13         SDPATH=../../..
14 endif
16 ##############################################################################
18 include         config.mk
20 ##############################################################################
22 # Project Object files
25 OBJS    =       $(BEGIN_OBJS) \
26                 $(OBJDIR)/PictureDimensions.o \
27                 $(END_OBJS)
29 ##############################################################################
31 # Autodependencies
33 ifneq ($(MAKECMDGOALS),clean)
34         -include $(OBJS:.o=.d)
35 endif
37 ##############################################################################
39 # Targets
41 NAME    =       picturedimensions.plugin
42 NAME_DB =       $(NAME).debug
44 ##############################################################################
46 # Subdirs
49 SUBDIRS =       $(filter-out Catalogs/sample/Scalos, $(wildcard Catalogs/*/Scalos))
51 ##############################################################################
53 .PHONY: all install clean bump dump nodebug
55 all:    $(BINDIR)/$(NAME) \
56         $(BINDIR)/$(NAME_DB) \
57         all_subdirs
59 ##############################################################################
61 PictureDimensions.c : $(SCALOS_LOCALE)
63 $(SCALOS_LOCALE) : PictureDimensionsPlugin.cd
64         @$(ECHO) "FlexCat $@"
65         $(FLEXCAT) $< $@=$(SDPATH)/CatComp_h.sd
67 ##############################################################################
69 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) : $(OBJS)
70         @$(ECHO) "Link $(NAME)"
71         @$(CC) $(OBJS) $(LFLAGS) $(DEFINES) -o$(BINDIR)/$(NAME_DB)
72         @$(STRIP) $(SFLAGS) $(BINDIR)/$(NAME_DB) -o $(BINDIR)/$(NAME)
73         @chmod u+x $@
75 ##############################################################################
77 install:
78         -@$(ECHO) "Installing $(NAME)"
79         @copy $(BINDIR)/$(NAME) Scalos:Plugins/FileTypes/ clone
80         @avail flush
82 install: install_subdirs
84 clean:
85         -@$(RM) -frv $(OBJDIR)/*.o $(OBJDIR)/*.d $(OBJDIR)/*.d.* \
86                 $(OBJDIR)/*.i $(OBJDIR)/*.s \
87                 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) \
88                 *.dump *_str.* \
89                 $(SCALOS_LOCALE) \
91 clean:  clean_subdirs
93 ##############################################################################