CXXFLAGS = -Wall -ffast-math -fcaller-saves -finline-functions -funroll-all-loops -O3
endif
-all: ann
+all: mlp
-ann: ann.o misc.o images.o neural.o
+mlp: mlp.o misc.o images.o neural.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
Makefile.depend: *.h *.cc Makefile
$(CC) -M *.cc > Makefile.depend
clean:
- \rm ann *.o Makefile.depend
+ \rm -f mlp *.o Makefile.depend
archive:
cd .. ; tar zcvf mlp-mnist.tgz mlp-mnist/{*.{cc,h,txt,sh},Makefile}