Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 ###
2 ### Makefile for disktype
3 ###
4
5 RM = rm -f
6 CC = gcc
7
8 OBJS = main.o lib.o \
9 buffer.o file.o cdaccess.o cdimage.o vpc.o compressed.o \
10 detect.o apple.o amiga.o atari.o dos.o cdrom.o \
11 linux.o unix.o beos.o archives.o \
12 udf.o blank.o cloop.o
13
14 TARGET = disktype
15
16 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
17 CFLAGS += -Wall
18 LDFLAGS +=
19 LIBS =
20
21 ifeq ($(NOSYS),)
22 system = $(shell uname)
23 ifeq ($(system),Linux)
24 CPPFLAGS += -DUSE_IOCTL_LINUX
25 endif
26 ifeq ($(system),FreeBSD)
27 # not entirely tested yet
28 #CPPFLAGS += -DUSE_IOCTL_FREEBSD
29 endif
30 ifeq ($(system),Darwin)
31 CPPFLAGS += -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN
32 LIBS += -framework CoreServices
33 ifeq (/Developer/SDKs/MacOSX10.4u.sdk,$(wildcard /Developer/SDKs/MacOSX10.4u.sdk))
34 CPPFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk
35 CFLAGS += -arch i386 -arch ppc
36 LDFLAGS += -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
37 endif
38 endif
39 ifeq ($(system),AmigaOS)
40 CC += -noixemul
41 CFLAGS += -m68020-60 -msmall-code
42 LDFLAGS += -m68020-60
43 endif
44 endif
45
46 # real making
47
48 all: $(TARGET)
49
50 $(TARGET): $(OBJS)
51 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
52
53 $(OBJS): %.o: %.c
54 $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
55
56 # cleanup
57
58 clean:
59 $(RM) *.o *~ *% $(TARGET)
60
61 distclean: clean
62 $(RM) .depend
63
64 # automatic dependencies
65
66 depend: dep
67 dep:
68 for i in $(OBJS:.o=.c) ; do $(CC) $(CPPFLAGS) -MM $$i ; done > .depend
69
70 ifeq (.depend,$(wildcard .depend))
71 include .depend
72 endif
73
74 # eof