darknet/Makefile

23 lines
589 B
Makefile
Raw Normal View History

2013-11-05 03:11:01 +08:00
CC=gcc
2013-12-03 08:41:40 +08:00
COMMON=-Wall `pkg-config --cflags opencv` -isystem /usr/local/Cellar/opencv/2.4.6.1/include/opencv -isystem /usr/local/Cellar/opencv/2.4.6.1/include
CFLAGS= $(COMMON) -O3 -ffast-math -flto
#CFLAGS= $(COMMON) -O0 -g
2013-11-05 03:11:01 +08:00
LDFLAGS=`pkg-config --libs opencv` -lm
VPATH=./src/
2013-12-03 08:41:40 +08: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 data.o matrix.o softmax_layer.o
2013-11-05 03:11:01 +08:00
all: cnn
cnn: $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
.PHONY: clean
clean:
rm -rf $(OBJ) cnn