source: branches/compat-10.2/Makefile @ 184

Last change on this file since 184 was 184, checked in by titer, 16 years ago

makefile just calls Xcode on OS X

File size: 1.5 KB
Line 
1include Makefile.config
2include Makefile.common
3
4ifneq ($(SYSTEM),Darwin)
5
6SRCS = transmissioncli.c
7OBJS = $(SRCS:%.c=%.o)
8
9CFLAGS += -Ilibtransmission
10
11all: transmissioncli
12
13transmissioncli: lib $(OBJS)
14        $(CC) -o $@ $(OBJS) libtransmission/libtransmission.a $(LDFLAGS)
15
16lib:
17        $(MAKE) -C libtransmission
18
19%.o: %.c Makefile.config Makefile.common Makefile
20        $(CC) $(CFLAGS) -o $@ -c $<
21
22clean:
23        $(RM) transmissioncli $(OBJS)
24        $(MAKE) -C libtransmission clean
25
26.depend: $(SRCS) Makefile
27        $(RM) .depend
28        $(foreach SRC, $(SRCS), $(CC) -MM -Ilibtransmission $(SRC) >> .depend;)
29
30include .depend
31
32else
33
34all:
35        make -C macosx
36        xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
37
38clean:
39        xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
40        make -C macosx clean
41
42MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
43
44package:
45        $(RM) tmp "Transmission $(VERSION_STRING)" \
46            Transmission-$(VERSION_STRING).dmg && \
47          mkdir -p tmp && \
48          cp -r Transmission.app tmp/ && \
49          cp AUTHORS tmp/AUTHORS.txt && \
50          cp LICENSE tmp/LICENSE.txt && \
51          cp NEWS tmp/NEWS.txt && \
52          strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
53          $(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
54          $(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
55          $(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
56          mv tmp "Transmission $(VERSION_STRING)" && \
57          hdiutil create -format UDZO -srcfolder \
58            "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
59          rm -rf "Transmission $(VERSION_STRING)"
60
61endif
Note: See TracBrowser for help on using the repository browser.