source: trunk/beos/Makefile @ 204

Last change on this file since 204 was 204, checked in by joshe, 16 years ago

Don't print an error if the .depend files don't exist.

File size: 724 bytes
RevLine 
[189]1include ../Makefile.config
2include ../Makefile.common
3
4SRCS = TRApplication.cpp TRWindow.cpp TRTransfer.cpp \
5       TRPrefsWindow.cpp TRInfoWindow.cpp
6OBJS = $(SRCS:%.cpp=%.o)
7
8CXXFLAGS += -I../libtransmission
9LDFLAGS  += ../libtransmission/libtransmission.a
10CXXFLAGS += -IlibPrefs
11LDFLAGS  += -lbe -ltracker libPrefs/libPrefs.a
12
13Transmission: $(OBJS) Transmission.rsrc
14        $(CXX) -o $@ $(OBJS) $(LDFLAGS)
15        xres -o Transmission Transmission.rsrc
16        mimeset -f Transmission
17
18%.o: %.cpp ../Makefile.config ../Makefile.common Makefile
19        $(CXX) $(CXXFLAGS) -o $@ -c $<
20
21clean:
22        $(RM) Transmission $(OBJS)
23
24.depend: $(SRCS) Makefile
25        $(RM) .depend
26        $(foreach SRC, $(SRCS), $(CXX) $(CXXFLAGS) -MM $(SRC) >> .depend;)
27
[204]28-include .depend
Note: See TracBrowser for help on using the repository browser.