projects
/
clueless-kmeans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2455f83
)
Removed useless libraries, added the Makefile.depend.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 27 Mar 2013 11:25:49 +0000
(12:25 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 27 Mar 2013 11:25:49 +0000
(12:25 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
c8463c8
..
5ed1536
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-19,11
+19,7
@@
# You should have received a copy of the GNU General Public License
# along with selector. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with selector. If not, see <http://www.gnu.org/licenses/>.
-ifeq ($(STATIC),yes)
- LDFLAGS=-static -lm -ljpeg -lpng -lz -lglpk
-else
- LDFLAGS= -lm -ljpeg -lpng -lz -lglpk
-endif
+LDFLAGS= -lm -lglpk
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
@@
-37,8
+33,6
@@
endif
CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
-# LDFLAGS=-lglpk
-
all: clueless-kmean
clueless-kmean: \
all: clueless-kmean
clueless-kmean: \
@@
-48,5
+42,10
@@
clueless-kmean: \
clueless-kmean.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
clueless-kmean.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+Makefile.depend: *.h *.cc Makefile
+ $(CC) -M *.cc > Makefile.depend
+
clean:
clean:
- rm -f *.o clueless-kmean
+ rm -f *.o Makefile.depend clueless-kmean
+
+-include Makefile.depend