You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
361 B
Makefile
23 lines
361 B
Makefile
11 years ago
|
# the factor of gravity
|
||
|
G=1
|
||
|
# the factor of pressure
|
||
|
P=4
|
||
|
# the factor of viscosity
|
||
|
V=8
|
||
|
RM= rm
|
||
|
TRUE= true
|
||
|
CWARN= -Wall -W -Wextra -pedantic
|
||
|
CSTD= -std=c99 -D_BSD_SOURCE
|
||
|
CFLAGS= ${CWARN} ${CSTD} ${ARCH} ${OPT}
|
||
|
CC= gcc
|
||
|
ENTRY= prog
|
||
|
|
||
|
all: ${ENTRY}
|
||
|
@${TRUE}
|
||
|
|
||
|
${ENTRY}: ${ENTRY}.c
|
||
|
${CC} ${CFLAGS} -DG=$G -DP=$P -DV=$P ${ENTRY}.c -o $@ -lm
|
||
|
|
||
|
clean:
|
||
|
$(RM) -f ${ENTRY}
|