2013-11-04 23:11:01 +04:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall `pkg-config --cflags opencv` -O3 -flto -ffast-math
|
2013-11-06 22:37:37 +04:00
|
|
|
CFLAGS=-Wall `pkg-config --cflags opencv` -O0 -g
|
2013-11-04 23:11:01 +04:00
|
|
|
LDFLAGS=`pkg-config --libs opencv` -lm
|
|
|
|
VPATH=./src/
|
|
|
|
|
2013-11-07 04:09:41 +04:00
|
|
|
OBJ=network.o image.o tests.o convolutional_layer.o connected_layer.o maxpool_layer.o activations.o list.o option_list.o parser.o utils.o
|
2013-11-04 23:11:01 +04:00
|
|
|
|
|
|
|
all: cnn
|
|
|
|
|
|
|
|
cnn: $(OBJ)
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJ) cnn
|
|
|
|
|