Last change
on this file since 1109 was
947,
checked in by titer, 16 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 | |
---|
3 | include ../mk/config.mk |
---|
4 | include ../mk/common.mk |
---|
5 | |
---|
6 | SRCS = TRApplication.cpp TRWindow.cpp TRTransfer.cpp \ |
---|
7 | TRPrefsWindow.cpp TRInfoWindow.cpp |
---|
8 | OBJS = $(SRCS:%.cpp=%.o) |
---|
9 | |
---|
10 | CXXFLAGS += -I../libtransmission |
---|
11 | LDLIBS += ../libtransmission/libtransmission.a |
---|
12 | CXXFLAGS += -IlibPrefs |
---|
13 | LDFLAGS += -lbe -ltracker |
---|
14 | LDLIBS += libPrefs/libPrefs.a |
---|
15 | |
---|
16 | Transmission: $(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 | |
---|
24 | clean: |
---|
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 | |
---|
31 | install: |
---|
32 | @true |
---|
33 | |
---|
34 | -include .depend |
---|
Note: See
TracBrowser
for help on using the repository browser.