Changeset 184


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

makefile just calls Xcode on OS X

Location:
branches/compat-10.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/compat-10.2/Makefile

    r134 r184  
    11include Makefile.config
    22include Makefile.common
     3
     4ifneq ($(SYSTEM),Darwin)
    35
    46SRCS = transmissioncli.c
     
    810
    911all: transmissioncli
    10 ifeq ($(SYSTEM),Darwin)
    11         $(MAKE) -C macosx
    12 endif
    1312
    1413transmissioncli: lib $(OBJS)
     
    2120        $(CC) $(CFLAGS) -o $@ -c $<
    2221
    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 
    4622clean:
    4723        $(RM) transmissioncli $(OBJS)
    4824        $(MAKE) -C libtransmission clean
    49 ifeq ($(SYSTEM),Darwin)
    50         $(MAKE) -C macosx clean
    51 endif
    5225
    5326.depend: $(SRCS) Makefile
     
    5629
    5730include .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
  • branches/compat-10.2/Transmission.xcodeproj/project.pbxproj

    r183 r184  
    102102                        containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
    103103                        proxyType = 1;
    104                         remoteGlobalIDString = 4D18389609DEC0030047D688 /* libtransmission */;
     104                        remoteGlobalIDString = 4D18389609DEC0030047D688;
    105105                        remoteInfo = libtransmission;
    106106                };
     
    635635                        isa = XCBuildConfiguration;
    636636                        buildSettings = {
     637                                CONFIGURATION_BUILD_DIR = "$(SRCROOT)";
     638                                LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/build/debug\"";
    637639                                OTHER_CFLAGS = (
    638640                                        "-D_FILE_OFFSET_BITS=64",
     
    653655                        isa = XCBuildConfiguration;
    654656                        buildSettings = {
     657                                CONFIGURATION_BUILD_DIR = "$(SRCROOT)";
    655658                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
    656659                                GCC_PREFIX_HEADER = macosx/Transmission_Prefix.pch;
    657660                                HEADER_SEARCH_PATHS = "\"$(SRCROOT)/libtransmission\"";
    658661                                INFOPLIST_FILE = macosx/Info.plist;
     662                                LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/build/debug\"";
    659663                                PRODUCT_NAME = Transmission;
    660664                                WRAPPER_EXTENSION = app;
  • branches/compat-10.2/macosx/Makefile

    r134 r184  
    11include ../Makefile.config
    22include ../Makefile.common
    3 
    4 SRCS = $(shell ls *.m *.h *.plist)
    5 
    6 Transmission.app: $(SRCS) Info.plist
    7         xcodebuild -configuration Debug | grep -v "^$$"
    83
    94Info.plist: Info.plist.in ../Makefile.common
     
    127
    138clean:
    14         $(RM) Info.plist build
     9        $(RM) Info.plist
Note: See TracChangeset for help on using the changeset viewer.