Init control word to zero, cdrom-handler reads this and will crash if it is non-zero...
[AROS.git] / rom / partition / Makefile.gcc
blob784d54856ee3e44ed8902b628b86a1871005db5f
1 CC      := gcc
2 LD      := gcc
3 RM      := rm
4 CFLAGS  := -Wall -DNO_INLINE_STDARG -D__AMIGAOS__ -O2 -m68020
5 LDFLAGS := -noixemul -nostartfiles -s
6 LIBFILE := /libs/partition.library
7 FILES   := \
8         partition_support \
9         partitionmbr \
10         partitionrdb
12 FUNCS := \
13         openrootpartition \
14         closerootpartition \
15         openpartitiontable \
16         closepartitiontable \
17         writepartitiontable \
18         createpartitiontable \
19         addpartition \
20         deletepartition \
21         getpartitiontableattrs \
22         setpartitiontableattrs \
23         getpartitionattrs \
24         setpartitionattrs \
25         querypartitiontableattrs \
26         querypartitionattrs \
27         destroypartitiontable
29 CFILES := partitionami_init $(FILES) $(FUNCS)
31 COBJS   := $(foreach f, $(CFILES), $(f).o)
32 DEPS    := $(foreach f, $(CFILES), $(f).d)
33 #EXTRALIB:= $(shell $(CC) --print-libgcc-file)
35 .PHONY : all depend clean library
36            
37 all : $(LIBFILE)
39 depend  : $(DEPS)
41 clean   :
42         rm -f *.o *.d $(LIBFILE)
43         
44 $(LIBFILE) : $(COBJS)
45         $(LD) $(LDFLAGS) $^ $(EXTRALIB) -o $@
47 %.o : %.c
48         $(CC) $(CFLAGS) -c $< -o $@
50 %.d : %.c
51         $(CC) $(CFLAGS) -M $< -o $@
53 ifeq (,$(filter clean depend,$(TARGET)))
54 -include $(DEPS)
55 endif