Changeset 191 for trunk/Makefile


Ignore:
Timestamp:
Apr 3, 2006, 7:29:09 PM (16 years ago)
Author:
titer
Message:

Merge compat-10.2 branch. This adds Jaguar compatibility on OS X, and
completes the Jam -> Make/XCode switch. Hope it doesn't break too much.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r134 r191  
    11include Makefile.config
    22include Makefile.common
     3
     4ifneq ($(SYSTEM),Darwin)
    35
    46SRCS = transmissioncli.c
     
    79CFLAGS += -Ilibtransmission
    810
    9 all: transmissioncli
    10 ifeq ($(SYSTEM),Darwin)
    11         $(MAKE) -C macosx
    12 endif
     11all: transmissioncli transmission-gtk transmission-beos
     12
     13lib:
     14        $(MAKE) -C libtransmission
    1315
    1416transmissioncli: lib $(OBJS)
    1517        $(CC) -o $@ $(OBJS) libtransmission/libtransmission.a $(LDFLAGS)
    1618
    17 lib:
    18         $(MAKE) -C libtransmission
     19transmission-gtk:
     20ifeq ($(GTK),yes)
     21        $(MAKE) -C gtk
     22endif
     23
     24transmission-beos:
     25ifeq ($(SYSTEM),BeOS)
     26        $(MAKE) -C beos
     27endif
    1928
    2029%.o: %.c Makefile.config Makefile.common Makefile
    2130        $(CC) $(CFLAGS) -o $@ -c $<
    2231
    23 package-macosx:
    24         $(RM) tmp "Transmission $(VERSION_STRING)" \
    25             Transmission-$(VERSION_STRING).dmg && \
    26           mkdir -p tmp/Transmission.app && \
    27           ditto macosx/build/Debug/Transmission.app tmp/Transmission.app && \
    28           ditto AUTHORS tmp/AUTHORS.txt && \
    29           ditto LICENSE tmp/LICENSE.txt && \
    30           ditto NEWS tmp/NEWS.txt && \
    31           strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
    32           ( echo "[InternetShortcut]"; \
    33             echo "URL=http://transmission.m0k.org/" ) > \
    34                 tmp/Homepage.url && \
    35           ( echo "[InternetShortcut]"; \
    36             echo "URL=http://transmission.m0k.org/forum/" ) > \
    37                 tmp/Forums.url && \
    38           ( echo "[InternetShortcut]"; \
    39             echo "URL=http://transmission.m0k.org/contribute.php" ) > \
    40             tmp/Contribute.url && \
    41           mv tmp "Transmission $(VERSION_STRING)" && \
    42           hdiutil create -format UDZO -srcfolder \
    43             "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
    44           rm -rf "Transmission $(VERSION_STRING)"
    45 
    4632clean:
    4733        $(RM) transmissioncli $(OBJS)
    4834        $(MAKE) -C libtransmission clean
    49 ifeq ($(SYSTEM),Darwin)
    50         $(MAKE) -C macosx clean
     35ifeq ($(GTK),yes)
     36        $(MAKE) -C gtk clean
     37endif
     38ifeq ($(SYSTEM),BeOS)
     39        $(MAKE) -C beos clean
    5140endif
    5241
     
    5645
    5746include .depend
     47
     48else
     49
     50all:
     51        make -C macosx
     52        xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
     53
     54clean:
     55        xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
     56        make -C macosx clean
     57
     58MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
     59
     60package:
     61        $(RM) tmp "Transmission $(VERSION_STRING)" \
     62            Transmission-$(VERSION_STRING).dmg && \
     63          mkdir -p tmp && \
     64          cp -r Transmission.app tmp/ && \
     65          cp AUTHORS tmp/AUTHORS.txt && \
     66          cp LICENSE tmp/LICENSE.txt && \
     67          cp NEWS tmp/NEWS.txt && \
     68          strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
     69          $(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
     70          $(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
     71          $(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
     72          mv tmp "Transmission $(VERSION_STRING)" && \
     73          hdiutil create -format UDZO -srcfolder \
     74            "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
     75          rm -rf "Transmission $(VERSION_STRING)"
     76
     77endif
Note: See TracChangeset for help on using the changeset viewer.