Last change
on this file since 204 was
204,
checked in by joshe, 17 years ago
|
Don't print an error if the .depend files don't exist.
|
File size:
724 bytes
|
Line | |
---|
1 | include ../Makefile.config |
---|
2 | include ../Makefile.common |
---|
3 | |
---|
4 | SRCS = TRApplication.cpp TRWindow.cpp TRTransfer.cpp \ |
---|
5 | TRPrefsWindow.cpp TRInfoWindow.cpp |
---|
6 | OBJS = $(SRCS:%.cpp=%.o) |
---|
7 | |
---|
8 | CXXFLAGS += -I../libtransmission |
---|
9 | LDFLAGS += ../libtransmission/libtransmission.a |
---|
10 | CXXFLAGS += -IlibPrefs |
---|
11 | LDFLAGS += -lbe -ltracker libPrefs/libPrefs.a |
---|
12 | |
---|
13 | Transmission: $(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 | |
---|
21 | clean: |
---|
22 | $(RM) Transmission $(OBJS) |
---|
23 | |
---|
24 | .depend: $(SRCS) Makefile |
---|
25 | $(RM) .depend |
---|
26 | $(foreach SRC, $(SRCS), $(CXX) $(CXXFLAGS) -MM $(SRC) >> .depend;) |
---|
27 | |
---|
28 | -include .depend |
---|
Note: See
TracBrowser
for help on using the repository browser.