2006-05-29 21:21:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
include ../mk/config.mk
|
|
|
|
include ../mk/common.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
SRCS = TRApplication.cpp TRWindow.cpp TRTransfer.cpp \
|
|
|
|
TRPrefsWindow.cpp TRInfoWindow.cpp
|
|
|
|
OBJS = $(SRCS:%.cpp=%.o)
|
|
|
|
|
|
|
|
CXXFLAGS += -I../libtransmission
|
|
|
|
LDFLAGS += ../libtransmission/libtransmission.a
|
|
|
|
CXXFLAGS += -IlibPrefs
|
|
|
|
LDFLAGS += -lbe -ltracker libPrefs/libPrefs.a
|
|
|
|
|
|
|
|
Transmission: $(OBJS) Transmission.rsrc
|
|
|
|
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
|
|
|
|
xres -o Transmission Transmission.rsrc
|
|
|
|
mimeset -f Transmission
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
%.o: %.cpp ../mk/config.mk ../mk/common.mk ../mk/beos.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) Transmission $(OBJS)
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/beos.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
$(RM) .depend
|
|
|
|
$(foreach SRC, $(SRCS), $(CXX) $(CXXFLAGS) -MM $(SRC) >> .depend;)
|
|
|
|
|
2006-04-25 08:14:37 +00:00
|
|
|
install:
|
|
|
|
@true
|
|
|
|
|
2006-04-05 09:45:09 +00:00
|
|
|
-include .depend
|