Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / Plugins / Preview / PNGPicture / makefile-new
blobb5509762037a67e3566e16ddcb5d10c7f50d48bc
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)/PNGPicture.o \
20                 $(END_OBJS)
22 ##############################################################################
24 # Autodependencies
26 ifneq ($(MAKECMDGOALS),clean)
27         -include $(OBJS:.o=.d)
28 endif
30 ##############################################################################
32 # Targets
35 NAME    =       pngpicture.pvplugin
36 NAME_DB =       $(NAME).debug
38 ##############################################################################
40 .PHONY: all install clean bump dump nodebug
42 all:    $(BINDIR)/$(NAME) \
43         $(BINDIR)/$(NAME_DB) \
44         all_subdirs
46 ##############################################################################
48 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) : $(OBJS)
49         @$(ECHO) "Link $(NAME)"
50         @$(CC) $(OBJS) $(LFLAGS) $(DEFINES) -o$(BINDIR)/$(NAME_DB)
51         @$(STRIP) $(SFLAGS) $(BINDIR)/$(NAME_DB) -o $(BINDIR)/$(NAME)
52         @chmod u+x $@
54 ##############################################################################
56 install:
57         -@$(ECHO) "Installing $(NAME)"
58         @copy $(BINDIR)/$(NAME) Scalos:Plugins/Preview/ clone
59         @touch env:scalos/FileTypes/png
60         @avail flush
62 install: install_subdirs
64 clean:
65         -@$(RM) -frv $(OBJDIR)/*.o $(OBJDIR)/*.d $(OBJDIR)/*.d.* \
66                 $(OBJDIR)/*.i $(OBJDIR)/*.s \
67                 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) \
68                 *.dump *_str.*
70 clean:  clean_subdirs
72 ##############################################################################