Test bed for SDI headers.
[AROS.git] / test / sdi / examples / misc / makefile.os3
blob97406a765f6a2b3ec0fa44bfdbff1aa3a073cc8b
2 #       $Id: makefile.os3,v 1.1 2005/06/08 06:54:25 damato Exp $
4 #       :ts=4
7 CC      = m68k-amigaos-gcc
9 .c.o:
10         @echo "Compiling $<"
11         @$(CC) -c $(CFLAGS) -o $*.o $<
13 ###########################################################################
15 NAME    = hellomisc
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 = -m68020-60 -msoft-float
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_miscuse.o \
40 LIBS = \
41   -lc
43 ###########################################################################
45 all: $(NAME)
47 $(NAME): $(OBJS)
48         @echo "Linking $@"
49         @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS)
50         @m68k-amigaos-strip -R.comment -o $@ $@.debug
52 ###########################################################################
54 example_miscuse.o : example_miscuse.c
56 ###########################################################################
58 clean:
59         -rm *.o *.debug $(NAME)