Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / datatypes / AmigaIconObject / makefile-new
blob847be23d1c07b7cc65721eda40e2efa4ebc4b7df
1 # $Date: 2011-07-09 20:50:13 +0200 (Sa, 09. Jul 2011) $
2 # $Revision: 759 $
3 ##############################################################################
5 ifndef TOPLEVEL
6         TOPLEVEL=$(shell pwd)/../..
7 endif
9 ##############################################################################
11 include         config.mk
13 ##############################################################################
15 # Project Object files
18 ifeq ($(MACHINE), ppc-amigaos)
19 OBJS    =       $(OBJDIR)/AmigaIconObject.o $(OBJDIR)/AmigaIconObject-aos4.o
20 else
21 ifeq ($(MACHINE), i386-aros)
22 OBJS    =       $(OBJDIR)/AmigaIconObject.o $(OBJDIR)/AmigaIconObject-aros.o
23 else
24 OBJS    =       $(OBJDIR)/AmigaIconObject.o $(OBJDIR)/AmigaIconObject-classic.o
25 endif
26 endif
28 ##############################################################################
30 # Autodependencies
32 ifneq ($(MAKECMDGOALS),clean)
33         -include $(OBJS:.o=.d)
34 endif
36 ##############################################################################
38 # Targets
41 NAME    =       amigaiconobject.datatype
42 NAME_DB =       $(NAME).debug
44 ##############################################################################
46 .PHONY: all install clean bump dump
48 all:    $(BINDIR)/$(NAME) \
49         $(BINDIR)/$(NAME_DB)
50         
51 ##############################################################################
53 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) : $(OBJS)
54         $(ECHO) "Link $(NAME)"
55         @$(CC) $(OBJS) $(LFLAGS) $(DEFINES) -o$(BINDIR)/$(NAME_DB)
56         @$(STRIP) $(SFLAGS) $(BINDIR)/$(NAME_DB) -o $(BINDIR)/$(NAME)
57         @chmod u+x $@
59 ##############################################################################
61 install: 
62         -@$(ECHO) "Installing $(NAME)"
63         -@$(MKDIR) $(DT_DIR)
64         @copy $(BINDIR)/$(NAME) $(DT_DIR)
65         @avail flush
67 clean:
68         -@$(RM) -frv $(OBJDIR)/*.o $(OBJDIR)/*.d $(OBJDIR)/*.d.* \
69                 $(OBJDIR)/*.i $(OBJDIR)/*.s \
70                 $(BINDIR)/$(NAME) $(BINDIR)/$(NAME_DB) \
71                 *.dump *_str.*
73 ##############################################################################