From b8549331bb6c24cdfd963017a598944de544c12f Mon Sep 17 00:00:00 2001 From: phani Date: Thu, 19 Dec 2019 16:26:58 -0500 Subject: [PATCH] makefile update --- .gitignore | 1 + Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/Makefile b/Makefile index 4de3c73..554dcde 100644 --- a/Makefile +++ b/Makefile @@ -3,5 +3,53 @@ CC = clang CFLAGS = -lm -Ofast -march=native -Wall -std=c99 -sod: sod.c - $(CC) sod.c samples/cnn_face_detection.c -o sod_face_detect -I. $(CFLAGS) \ No newline at end of file +#sod: sod.c +# $(CC) sod.c samples/cnn_face_detection.c -o sod_face_detect -I. $(CFLAGS) + +EXT = out + +SAMPLES = resize_image \ + license_plate_detection + +#SAMPLES = batch_img_loading \ +# blob_detection \ +# canny_edge_detection \ +# cnn_coco \ +# cnn_face_detection \ +# cnn_object_detection \ +# cnn_voc \ +# crop_image \ +# dilate_image \ +# erode_image \ +# grayscale_image \ +# hilditch_thin \ +# hough_lines_detection \ +# license_plate_detection \ +# minutiae \ +# otsu_image \ +# realnet_face_detection \ +# realnet_face_detection_embedded \ +# realnet_train_model \ +# resize_image \ +# rnn_text_gen \ +# rotate_image \ +# sobel_operator_img + +SAMPLESOUT = $(SAMPLES:%=%.$(EXT)) + +all: clean dir copy samples + +dir: + mkdir -p bin/ + +copy: + cp samples/*.png bin/ + cp samples/*.jpg bin/ + +samples: $(SAMPLESOUT) + +%.$(EXT): + $(CC) $(CFLAGS) -I. -lm sod.c samples/$(@:%.$(EXT)=%.c) -o bin/$@ + +clean: + rm -f bin/*