# 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
CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
-# LDFLAGS=-lglpk
-
all: clueless-kmean
clueless-kmean: \
clueless-kmean.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+Makefile.depend: *.h *.cc Makefile
+ $(CC) -M *.cc > Makefile.depend
+
clean:
- rm -f *.o clueless-kmean
+ rm -f *.o Makefile.depend clueless-kmean
+
+-include Makefile.depend