mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
28 lines
724 B
Makefile
28 lines
724 B
Makefile
include ../Makefile.config
|
|
include ../Makefile.common
|
|
|
|
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
|
|
|
|
%.o: %.cpp ../Makefile.config ../Makefile.common Makefile
|
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
$(RM) Transmission $(OBJS)
|
|
|
|
.depend: $(SRCS) Makefile
|
|
$(RM) .depend
|
|
$(foreach SRC, $(SRCS), $(CXX) $(CXXFLAGS) -MM $(SRC) >> .depend;)
|
|
|
|
-include .depend
|