mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
First Commit!
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall `pkg-config --cflags opencv` -O3 -flto -ffast-math
|
||||
#CFLAGS=-Wall `pkg-config --cflags opencv` -O0 -g
|
||||
LDFLAGS=`pkg-config --libs opencv` -lm
|
||||
VPATH=./src/
|
||||
|
||||
OBJ=network.o image.o tests.o convolutional_layer.o connected_layer.o maxpool_layer.o
|
||||
|
||||
all: cnn
|
||||
|
||||
cnn: $(OBJ)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJ) cnn
|
||||
|
Reference in New Issue
Block a user