move the tests under the debug folder
[AROS.git] / debug / test / sdi / examples / varargs / makefile.mos
blob4e66a884adbdb2a1ea4fa5f14d59fce675f44bc3
2 #       $Id: makefile.mos,v 1.2 2005/06/08 06:54:25 damato Exp $
4 #       :ts=4
7 CC      = ppc-morphos-gcc
9 .c.o:
10         @echo "Compiling $<"
11         @$(CC) -c $(CFLAGS) -o $*.o $<
13 ###########################################################################
15 NAME    = hello_varargs
16 VERSION = 51
18 ###########################################################################
20 WARNINGS = \
21         -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
22         -Wundef -Wbad-function-cast -Wmissing-declarations
24 CPU = -mcpu=604e -mmultiple
25 OPTIONS = -DNDEBUG -D__USE_INLINE__
26 OPTIMIZE = -O3 -fomit-frame-pointer -fstrength-reduce -finline-functions
27 DEBUG = -g
29 ###########################################################################
31 CFLAGS = -noixemul $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) -I. \
32          -I../../includes
33 LFLAGS = -L.
35 ###########################################################################
37 OBJS = \
38         example_varargs.o \
40 LIBS = \
41   -lstring
43 ###########################################################################
45 all: $(NAME)
47 $(NAME): $(OBJS)
48         @echo "Linking $@"
49         @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS)
50         @ppc-morphos-strip -R.comment -o $@ $@.debug
52 ###########################################################################
54 example_varargs.o : example_varargs.c
56 ###########################################################################
58 clean:
59         -rm *.o *.debug $(NAME)