Indentation fix, cleanup.
[AROS.git] / tools / dtdesc / c_iff / Makefile.sasc
blob6cb037b6145e679a7e3066a23489d2721504cb28
1 # Makefile for c_iff
3 .SUFFIXES: .c.o
5 CC = sc
7 CFLAGS = \
8          IDIR="" \
9          DEFINE=amiga \
10          DATA=FAR \
11          SMALLCODE \
12          STRIPDEBUG \
13          CPU=68020 \
14          OPTIMIZE \
15          OPTSCHED \
16          OPTINLINE \
17          OPTALIAS \
18          OPTTIME \
19          OPTINLOCAL \
20          NOICONS \
21          NOSTACKCHECK
23 LD = $(CC)
25 LDFLAGS = $(CFLAGS) LINK
27 C_FLAG =
29 O_FLAG = TO
31 AR = oml
33 RM = delete FORCE
35 OBJS = \
36         checkiff.o \
37         closeiff.o \
38         endchunk.o \
39         filesize.o \
40         fixiffsize.o \
41         newchunk.o \
42         newiff.o \
43         newsubform.o \
44         openiff.o \
45         readchunkdata.o \
46         readchunkheader.o \
47         skipchunkdata.o \
48         writechunkdata.o
50 .c.o:
51         $(CC) $(CFLAGS) $(C_FLAG) $*.c
53 all: c_iff.lib
54 doc: c_iff.txt
56 c_iff.lib: $(OBJS)
57         $(RM) c_iff.lib
58         $(AR) $@ $(OBJS)
60 c_iff.txt:
61         perl autodoc.pl *.c >c_iff.txt
63 example: example.o c_iff.lib
64         $(LD) $(LDFLAGS) $< $(O_FLAG) $@ LIB c_iff.lib
66 $(OBJS): c_iff.h
68 clean:
69         $(RM) c_iff.lib
70         $(RM) #?.o
71         $(RM) #?.lnk
72         $(RM) c_iff.txt
73         $(RM) example
74         $(RM) test1.iff