Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / Plugins / Preview / Video / makefile-new
blob44ee11ebcdbfea7958b8dd8cbcb6031ba90fb811
1 # $Date: 2011-07-31 23:57:02 +0200 (So, 31. Jul 2011) $
2 # $Revision: 814 $
3 ##############################################################################
5 ifndef TOPLEVEL
6         TOPLEVEL=$(shell pwd)/../../..
7 endif
9 ##############################################################################
11 include         config.mk
13 ##############################################################################
15 # Project Object files
18 OBJS    =       $(BEGIN_OBJS) \
19                 $(OBJDIR)/Video.o \
20                 $(COMPAT_OBJS) \
21                 $(END_OBJS)
23 ##############################################################################
25 # Autodependencies
27 ifneq ($(MAKECMDGOALS),clean)
28         -include $(OBJS:.o=.d)
29 endif
31 ##############################################################################
33 # Targets
36 NAME    =       video.pvplugin
37 NAME_DB =       $(NAME).debug
39 ##############################################################################
41 .PHONY: all install clean bump dump nodebug
43 all:    $(BINDIR)/$(NAME) \
44         $(BINDIR)/$(NAME_DB) \
45         all_subdirs
47 ##############################################################################
49 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) : $(OBJS)
50         @$(ECHO) "Link $(NAME)"
51         @$(CC) $(OBJS) $(LFLAGS) $(DEFINES) -o$(BINDIR)/$(NAME_DB)
52         @$(STRIP) $(SFLAGS) $(BINDIR)/$(NAME_DB) -o $(BINDIR)/$(NAME)
53         @chmod u+x $@
55 ##############################################################################
57 install:
58         -@$(ECHO) "Installing $(NAME)"
59         @copy $(BINDIR)/$(NAME) Scalos:Plugins/Preview/ clone
60         @touch env:scalos/FileTypes/video
61         @avail flush
63 install: install_subdirs
65 clean:
66         -@$(RM) -frv $(OBJDIR)/*.o $(OBJDIR)/*.d $(OBJDIR)/*.d.* \
67                 $(OBJDIR)/*.i $(OBJDIR)/*.s \
68                 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) \
69                 *.dump *_str.*
71 clean:  clean_subdirs
73 ##############################################################################