How to make this Makefile more concise?
- by David
I know there are ways to remove duplicates in Makefile. Can you tell me how to make the Makefile below more concise? Thanks!
And is there any tool to automate it?
CC=gcc
CFLAGS=-pthread -g -o
all: dotprod_mutex dotprod_serial
dotprod_mutex: dotprod_mutex.c
$(CC) $(CFLAGS) dotprod_mutex dotprod_mutex.c
dotprod_serial: dotprod_serial.c
$(CC) $(CFLAGS) dotprod_serial dotprod_serial.c