source: trunk/mk/beos.mk @ 1125

Last change on this file since 1125 was 947, checked in by titer, 15 years ago

List libT.a before the -l* flags on the command line (otherwise this can cause problems with LDFLAGS=-Wl,--as-needed)

Patch by Daniel T. Lin

  • Property svn:keywords set to Date Rev Author Id
File size: 801 bytes
Line 
1# $Id: beos.mk 947 2006-09-28 16:04:06Z livings124 $
2
3include ../mk/config.mk
4include ../mk/common.mk
5
6SRCS = TRApplication.cpp TRWindow.cpp TRTransfer.cpp \
7       TRPrefsWindow.cpp TRInfoWindow.cpp
8OBJS = $(SRCS:%.cpp=%.o)
9
10CXXFLAGS += -I../libtransmission
11LDLIBS   += ../libtransmission/libtransmission.a
12CXXFLAGS += -IlibPrefs
13LDFLAGS  += -lbe -ltracker
14LDLIBS   += libPrefs/libPrefs.a
15
16Transmission: $(OBJS) Transmission.rsrc
17        $(CXX) -o $@ $(OBJS) $(LDLIBS) $(LDFLAGS)
18        xres -o Transmission Transmission.rsrc
19        mimeset -f Transmission
20
21%.o: %.cpp ../mk/config.mk ../mk/common.mk ../mk/beos.mk
22        $(CXX) $(CXXFLAGS) -o $@ -c $<
23
24clean:
25        $(RM) Transmission $(OBJS)
26
27.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/beos.mk
28        $(RM) .depend
29        $(foreach SRC, $(SRCS), $(CXX) $(CXXFLAGS) -MM $(SRC) >> .depend;)
30
31install:
32        @true
33
34-include .depend
Note: See TracBrowser for help on using the repository browser.