How to make this Makefile more concise?
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-05-18T08:42:12Z
Indexed on
2010/05/18
8:51 UTC
Read the original article
Hit count: 361
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
© Stack Overflow or respective owner