Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / fs / fat / makefile
blob3bde5aea710b7ca5538be29b53880d874f2a1a50
1 OS=$(shell uname)
2 ifeq "$(OS)" "AROS"
3 STARTUP = startup-aros.c
4 NOIXEMUL =
5 INCLUDES =
6 LIBS = -lrom
7 PROG = fat.handler
8 DESTDIR = DEVS:
9 else
10 STARTUP = startup-amigaos.c
11 NOIXEMUL = -noixemul
12 INCLUDES = -isystem .
13 LIBS = -ldebug
14 PROG = fat-handler
15 DESTDIR = L:
16 endif
18 CFLAGS = -O2 -Wall
20 FILES := $(STARTUP) cache.c direntry.c disk.c fat.c file.c lock.c \
21 main.c names.c packet.c ops.c support.c notify.c charset.c \
22 timer.c
24 OBJS = $(FILES:.c=.o)
26 all: $(PROG)
28 $(OBJS): %.o: %.c
29 gcc -c $(CFLAGS) $(INCLUDES) $< $(NOIXEMUL)
31 $(PROG): $(OBJS)
32 gcc $(NOIXEMUL) -nostartfiles $^ -o $@ $(LIBS)
34 cache.o: cache.h debug.h fat_fs.h fat_struct.h fat_protos.h timer.h
35 charset.o: fat_fs.h fat_struct.h cache.h support.h charset.h
36 direntry.o: cache.h fat_fs.h fat_struct.h support.h fat_protos.h debug.h
37 disk.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
38 fat.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h timer.h
39 file.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
40 lock.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
41 main.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h charset.h debug.h timer.h
42 names.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
43 notify.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
44 ops.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
45 packet.o: fat_fs.h fat_struct.h cache.h support.h fat_protos.h debug.h
46 startup.o: debug.h
47 support.o: fat_fs.h fat_struct.h cache.h support.h
48 timer.o: fat_fs.h fat_struct.h fat_protos.h timer.h debug.h
50 clean:
51 Delete $(OBJS)
52 Delete $(PROG)
54 install: all
55 Copy $(PROG) $(DESTDIR)